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 Languagelanguage()booleanmatches(Language l)java.lang.StringprimaryTag()floatqValue()scala.collection.immutable.Seq<java.lang.String>subTags()LanguageRange.OnewithQValue(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:
qValuein interfaceLanguageRange- Specified by:
qValuein interfaceLanguageRange
-
matches
public boolean matches(Language l)
- Specified by:
matchesin interfaceLanguageRange
-
primaryTag
public java.lang.String primaryTag()
- Specified by:
primaryTagin interfaceLanguageRange- Specified by:
primaryTagin interfaceLanguageRange
-
subTags
public scala.collection.immutable.Seq<java.lang.String> subTags()
- Specified by:
subTagsin interfaceLanguageRange
-
withQValue
public LanguageRange.One withQValue(float qValue)
- Specified by:
withQValuein interfaceLanguageRange- Specified by:
withQValuein interfaceWithQValue<LanguageRange>
-
-