public abstract class ByteRange extends ByteRange implements ValueRenderable
Modifier and Type | Class and Description |
---|---|
static class |
ByteRange.FromOffset |
static class |
ByteRange.FromOffset$ |
static class |
ByteRange.Slice |
static class |
ByteRange.Slice$ |
static class |
ByteRange.Suffix
Used to specify the last
length bytes of an entity. |
static class |
ByteRange.Suffix$ |
Constructor and Description |
---|
ByteRange() |
Modifier and Type | Method and Description |
---|---|
static ByteRange.Slice |
apply(long first,
long last) |
static ByteRange.FromOffset |
fromOffset(long offset) |
java.util.OptionalLong |
getOffset()
Java API
|
java.util.OptionalLong |
getSliceFirst()
Java API
|
java.util.OptionalLong |
getSliceLast()
Java API
|
java.util.OptionalLong |
getSuffixLength()
Java API
|
boolean |
isFromOffset()
Java API
|
boolean |
isSlice()
Java API
|
boolean |
isSuffix()
Java API
|
static ByteRange.Suffix |
suffix(long length)
Constructs a range that spans the last `length` bytes of an entity.
|
createFromOffset, createSlice, createSuffix
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
value
toString
render
public static ByteRange.Slice apply(long first, long last)
public static ByteRange.FromOffset fromOffset(long offset)
public static ByteRange.Suffix suffix(long length)
public java.util.OptionalLong getSliceFirst()
getSliceFirst
in class ByteRange
public java.util.OptionalLong getSliceLast()
getSliceLast
in class ByteRange
public java.util.OptionalLong getOffset()
public java.util.OptionalLong getSuffixLength()
getSuffixLength
in class ByteRange
public boolean isFromOffset()
isFromOffset
in class ByteRange