case class Lang(locale: Locale) extends Product with Serializable
- Alphabetic
- By Inheritance
- Lang
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Lang(locale: Locale)
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
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
lazy val
code: String
The language tag (such as fr or en-US).
-
def
country: String
- returns
The country for this Lang, or "" if none exists.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
language: String
- returns
The language for this Lang.
- val locale: Locale
-
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
satisfies(accept: 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
-
def
script: String
- returns
The script tag for this Lang, or "" if none exists.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toLocale: Locale
Convert to a Java Locale value.
-
def
variant: String
- returns
The variant tag for this Lang, or "" if none exists.
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )