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, isOther
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getInstanceLength, isByteContentRange
getOtherValue, isOther
value
toString
public 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 ByteContentRange
public <R extends Rendering> Rendering render(R r)
render
in interface Renderable
public boolean isSatisfiable()
isSatisfiable
in interface ContentRange
isSatisfiable
in class ContentRange
public java.util.OptionalLong getSatisfiableFirst()
getSatisfiableFirst
in interface ContentRange
getSatisfiableFirst
in class ContentRange
public java.util.OptionalLong getSatisfiableLast()
getSatisfiableLast
in interface ContentRange
getSatisfiableLast
in class ContentRange