class Lang extends api.i18n.Lang
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Lang
- Lang
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new Lang(locale: Locale)
- new Lang(underlyingLang: api.i18n.Lang)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def asJava: Lang
- returns
the Java version for this Lang.
- Definition Classes
- Lang
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def code(): String
The language tag (such as fr or en-US).
- def country(): String
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def language(): String
- val locale: Locale
- Definition Classes
- Lang
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def script(): String
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toLocale(): Locale
Convert to a Java Locale value.
- def variant(): String
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
Deprecated Value Members
- def satisfies(accept: api.i18n.Lang): Boolean
Whether this lang satisfies the given lang.
Whether this lang satisfies the given lang.
If the other lang defines a country code, then this is equivalent to equals, if it doesn't, then the equals is only done on language and the country of this lang is ignored.
This implements the language matching specified by RFC2616 Section 14.4. Equality is case insensitive as per Section 3.10.
- accept
The accepted language
- Definition Classes
- Lang
- Annotations
- @deprecated
- Deprecated
(Since version 2.8.0) For the Locale Lookup, use Langs#preferred instead