Package akka.http.scaladsl.model
Class ContentRange.Default
- java.lang.Object
-
- akka.http.javadsl.model.ContentRange
-
- akka.http.scaladsl.model.ContentRange.Default
-
- All Implemented Interfaces:
Renderable,ToStringRenderable,ValueRenderable,ByteContentRange,ContentRange,java.io.Serializable,scala.Equals,scala.Product
- Enclosing interface:
- ContentRange
public static final class ContentRange.Default extends ContentRange implements ByteContentRange, scala.Product, java.io.Serializable
Models a satisfiable HTTP content-range.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface akka.http.scaladsl.model.ContentRange
ContentRange.Default, ContentRange.Default$, ContentRange.Other, ContentRange.Other$, ContentRange.Unsatisfiable, ContentRange.Unsatisfiable$
-
-
Constructor Summary
Constructors Constructor Description Default(long first, long last, scala.Option<java.lang.Object> instanceLength)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longfirst()java.util.OptionalLonggetSatisfiableFirst()Java APIjava.util.OptionalLonggetSatisfiableLast()Java APIscala.Option<java.lang.Object>instanceLength()booleanisSatisfiable()Java APIlonglast()<R extends Rendering>
Renderingrender(R r)-
Methods inherited from class akka.http.javadsl.model.ContentRange
create, create, create, createOther, createUnsatisfiable, getInstanceLength, getOtherValue, isByteContentRange, isOther
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface akka.http.scaladsl.model.ByteContentRange
getInstanceLength, isByteContentRange
-
Methods inherited from interface akka.http.scaladsl.model.ContentRange
getOtherValue, isOther
-
Methods inherited from interface scala.Product
productArity, productElement, productElementName, productElementNames, productIterator, productPrefix
-
Methods inherited from interface akka.http.impl.util.ToStringRenderable
toString
-
Methods inherited from interface akka.http.impl.util.ValueRenderable
value
-
-
-
-
Method Detail
-
first
public long first()
-
last
public long last()
-
instanceLength
public scala.Option<java.lang.Object> instanceLength()
- Specified by:
instanceLengthin interfaceByteContentRange
-
render
public <R extends Rendering> Rendering render(R r)
- Specified by:
renderin interfaceRenderable
-
isSatisfiable
public boolean isSatisfiable()
Java API- Specified by:
isSatisfiablein interfaceContentRange- Specified by:
isSatisfiablein classContentRange
-
getSatisfiableFirst
public java.util.OptionalLong getSatisfiableFirst()
Java API- Specified by:
getSatisfiableFirstin interfaceContentRange- Specified by:
getSatisfiableFirstin classContentRange
-
getSatisfiableLast
public java.util.OptionalLong getSatisfiableLast()
Java API- Specified by:
getSatisfiableLastin interfaceContentRange- Specified by:
getSatisfiableLastin classContentRange
-
-