Package akka.http.scaladsl.model
Class HttpCharsetRange.One
- java.lang.Object
-
- akka.http.javadsl.model.HttpCharsetRange
-
- akka.http.scaladsl.model.HttpCharsetRange
-
- akka.http.scaladsl.model.HttpCharsetRange.One
-
- All Implemented Interfaces:
Renderable
,ToStringRenderable
,ValueRenderable
,WithQValue<HttpCharsetRange>
,java.io.Serializable
,scala.Equals
,scala.Product
- Enclosing class:
- HttpCharsetRange
public static final class HttpCharsetRange.One extends HttpCharsetRange implements scala.Product, java.io.Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class akka.http.scaladsl.model.HttpCharsetRange
HttpCharsetRange.$times, HttpCharsetRange.$times$, HttpCharsetRange.One, HttpCharsetRange.One$
-
-
Constructor Summary
Constructors Constructor Description One(HttpCharset charset, float qValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpCharset
charset()
boolean
matches(HttpCharset charset)
float
qValue()
The qValue for this range.<R extends Rendering>
Renderingrender(R r)
HttpCharsetRange.One
withQValue(float qValue)
Returns a copy of this range with the given qValue.-
Methods inherited from class akka.http.scaladsl.model.HttpCharsetRange
apply, apply, matches
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
-
Methods inherited from interface akka.http.scaladsl.model.WithQValue
withQValue
-
-
-
-
Constructor Detail
-
One
public One(HttpCharset charset, float qValue)
-
-
Method Detail
-
charset
public HttpCharset charset()
-
qValue
public float qValue()
Description copied from class:HttpCharsetRange
The qValue for this range.- Specified by:
qValue
in classHttpCharsetRange
-
matches
public boolean matches(HttpCharset charset)
- Specified by:
matches
in classHttpCharsetRange
-
withQValue
public HttpCharsetRange.One withQValue(float qValue)
Description copied from class:HttpCharsetRange
Returns a copy of this range with the given qValue.- Specified by:
withQValue
in interfaceWithQValue<HttpCharsetRange>
- Specified by:
withQValue
in classHttpCharsetRange
-
render
public <R extends Rendering> Rendering render(R r)
- Specified by:
render
in interfaceRenderable
-
-