public abstract class ContentRange
extends java.lang.Object
Constructor and Description |
---|
ContentRange() |
Modifier and Type | Method and Description |
---|---|
static ContentRange |
create(long first,
long last) |
static ContentRange |
create(long first,
long last,
long instanceLength) |
static ContentRange |
create(long first,
long last,
java.util.OptionalLong instanceLength) |
static ContentRange |
createOther(java.lang.String value) |
static ContentRange |
createUnsatisfiable(long length) |
abstract java.util.OptionalLong |
getInstanceLength() |
abstract java.util.Optional<java.lang.String> |
getOtherValue() |
abstract java.util.OptionalLong |
getSatisfiableFirst() |
abstract java.util.OptionalLong |
getSatisfiableLast() |
abstract boolean |
isByteContentRange() |
abstract boolean |
isOther() |
abstract boolean |
isSatisfiable() |
public abstract boolean isByteContentRange()
public abstract boolean isSatisfiable()
public abstract boolean isOther()
public abstract java.util.OptionalLong getSatisfiableFirst()
public abstract java.util.OptionalLong getSatisfiableLast()
public abstract java.util.Optional<java.lang.String> getOtherValue()
public abstract java.util.OptionalLong getInstanceLength()
public static ContentRange create(long first, long last)
public static ContentRange create(long first, long last, long instanceLength)
public static ContentRange create(long first, long last, java.util.OptionalLong instanceLength)
public static ContentRange createUnsatisfiable(long length)
public static ContentRange createOther(java.lang.String value)