Modifier and Type | Field and Description |
---|---|
long |
length
The length of the range, or -1 to indicate that the range is unbounded.
|
long |
start
The (zero based) index of the first byte of the range.
|
Constructor and Description |
---|
RangedUri(String baseUri,
String referenceUri,
long start,
long length)
Constructs an ranged uri.
|
Modifier and Type | Method and Description |
---|---|
RangedUri |
attemptMerge(RangedUri other)
Attempts to merge this
RangedUri with another. |
boolean |
equals(Object obj) |
Uri |
getUri()
Returns the
Uri represented by the instance. |
String |
getUriString()
Returns the uri represented by the instance as a string.
|
int |
hashCode() |
public final long start
public final long length
public RangedUri(String baseUri, String referenceUri, long start, long length)
baseUri
- A uri that can form the base of the uri defined by the instance.referenceUri
- A reference uri that should be resolved with respect to baseUri
.start
- The (zero based) index of the first byte of the range.length
- The length of the range, or -1 to indicate that the range is unbounded.public Uri getUri()
Uri
represented by the instance.Uri
represented by the instance.public String getUriString()