Package akka.http.scaladsl.model.headers
Class LanguageRange.One
- java.lang.Object
-
- akka.http.scaladsl.model.headers.LanguageRange.One
-
- All Implemented Interfaces:
Renderable
,ToStringRenderable
,ValueRenderable
,LanguageRange
,LanguageRange
,WithQValue<LanguageRange>
,java.io.Serializable
,scala.Equals
,scala.Product
- Enclosing interface:
- LanguageRange
public static final class LanguageRange.One extends java.lang.Object implements LanguageRange, scala.Product, java.io.Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface akka.http.scaladsl.model.headers.LanguageRange
LanguageRange.$times, LanguageRange.$times$, LanguageRange.One, LanguageRange.One$
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Language
language()
boolean
matches(Language l)
java.lang.String
primaryTag()
float
qValue()
scala.collection.immutable.Seq<java.lang.String>
subTags()
LanguageRange.One
withQValue(float qValue)
-
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.headers.LanguageRange
getSubTags, matches, render
-
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(Language language, float qValue)
-
-
Method Detail
-
language
public Language language()
-
qValue
public float qValue()
- Specified by:
qValue
in interfaceLanguageRange
- Specified by:
qValue
in interfaceLanguageRange
-
matches
public boolean matches(Language l)
- Specified by:
matches
in interfaceLanguageRange
-
primaryTag
public java.lang.String primaryTag()
- Specified by:
primaryTag
in interfaceLanguageRange
- Specified by:
primaryTag
in interfaceLanguageRange
-
subTags
public scala.collection.immutable.Seq<java.lang.String> subTags()
- Specified by:
subTags
in interfaceLanguageRange
-
withQValue
public LanguageRange.One withQValue(float qValue)
- Specified by:
withQValue
in interfaceLanguageRange
- Specified by:
withQValue
in interfaceWithQValue<LanguageRange>
-
-