public abstract class ByteRange
extends java.lang.Object
Constructor and Description |
---|
ByteRange() |
Modifier and Type | Method and Description |
---|---|
static ByteRange |
createFromOffset(long offset) |
static ByteRange |
createSlice(long first,
long last) |
static ByteRange |
createSuffix(long length) |
abstract java.util.OptionalLong |
getOffset() |
abstract java.util.OptionalLong |
getSliceFirst() |
abstract java.util.OptionalLong |
getSliceLast() |
abstract java.util.OptionalLong |
getSuffixLength() |
abstract boolean |
isFromOffset() |
abstract boolean |
isSlice() |
abstract boolean |
isSuffix() |
public abstract boolean isSlice()
public abstract boolean isFromOffset()
public abstract boolean isSuffix()
public abstract java.util.OptionalLong getSliceFirst()
public abstract java.util.OptionalLong getSliceLast()
public abstract java.util.OptionalLong getOffset()
public abstract java.util.OptionalLong getSuffixLength()
public static ByteRange createSlice(long first, long last)
public static ByteRange createFromOffset(long offset)
public static ByteRange createSuffix(long length)