public static final class ContentRange.Default extends ContentRange implements ByteContentRange, scala.Product, java.io.Serializable
ContentRange.Default, ContentRange.Default$, ContentRange.Other, ContentRange.Other$, ContentRange.Unsatisfiable, ContentRange.Unsatisfiable$| Constructor and Description |
|---|
Default(long first,
long last,
scala.Option<java.lang.Object> instanceLength) |
| Modifier and Type | Method and Description |
|---|---|
long |
first() |
java.util.OptionalLong |
getSatisfiableFirst()
Java API
|
java.util.OptionalLong |
getSatisfiableLast()
Java API
|
scala.Option<java.lang.Object> |
instanceLength() |
boolean |
isSatisfiable()
Java API
|
long |
last() |
<R extends Rendering> |
render(R r) |
create, create, create, createOther, createUnsatisfiable, getInstanceLength, getOtherValue, isByteContentRange, isOtherclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetInstanceLength, isByteContentRangegetOtherValue, isOthervaluetoStringpublic Default(long first,
long last,
scala.Option<java.lang.Object> instanceLength)
public long first()
public long last()
public scala.Option<java.lang.Object> instanceLength()
instanceLength in interface ByteContentRangepublic <R extends Rendering> Rendering render(R r)
render in interface Renderablepublic boolean isSatisfiable()
isSatisfiable in interface ContentRangeisSatisfiable in class ContentRangepublic java.util.OptionalLong getSatisfiableFirst()
getSatisfiableFirst in interface ContentRangegetSatisfiableFirst in class ContentRangepublic java.util.OptionalLong getSatisfiableLast()
getSatisfiableLast in interface ContentRangegetSatisfiableLast in class ContentRange