private static class HttpRange.SuffixByteRange extends HttpRange
HttpRange.createSuffixRange(long)| Modifier and Type | Field and Description |
|---|---|
private long |
suffixLength |
| Constructor and Description |
|---|
SuffixByteRange(long suffixLength) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other) |
long |
getRangeEnd(long length)
Return the end of the range (inclusive) given the total length of a representation.
|
long |
getRangeStart(long length)
Return the start of the range given the total length of a representation.
|
int |
hashCode() |
java.lang.String |
toString() |
createByteRange, createByteRange, createSuffixRange, parseRanges, toStringpublic long getRangeStart(long length)
HttpRangegetRangeStart in class HttpRangelength - the length of the representationpublic long getRangeEnd(long length)
HttpRangegetRangeEnd in class HttpRangelength - the length of the representationpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object