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 HttpCharsetcharset()booleanmatches(HttpCharset charset)floatqValue()The qValue for this range.<R extends Rendering>
Renderingrender(R r)HttpCharsetRange.OnewithQValue(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:HttpCharsetRangeThe qValue for this range.- Specified by:
qValuein classHttpCharsetRange
-
matches
public boolean matches(HttpCharset charset)
- Specified by:
matchesin classHttpCharsetRange
-
withQValue
public HttpCharsetRange.One withQValue(float qValue)
Description copied from class:HttpCharsetRangeReturns a copy of this range with the given qValue.- Specified by:
withQValuein interfaceWithQValue<HttpCharsetRange>- Specified by:
withQValuein classHttpCharsetRange
-
render
public <R extends Rendering> Rendering render(R r)
- Specified by:
renderin interfaceRenderable
-
-