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, toString
public long getRangeStart(long length)
HttpRange
getRangeStart
in class HttpRange
length
- the length of the representationpublic long getRangeEnd(long length)
HttpRange
getRangeEnd
in class HttpRange
length
- the length of the representationpublic boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object