public final class Language extends Object implements Comparable<Language>
Modifier and Type | Method and Description |
---|---|
String |
code()
Returns the language code (ISO 639).
|
int |
compareTo(Language o) |
static Language |
def()
Returns the user language as default language, or English if the language cannot be assigned.
|
boolean |
equals(Object o) |
static Language |
get(MainOptions opts)
Returns an instance for the current language option, or English as default language.
|
static Language |
get(String lang)
Returns an instance for the specified language code or
null . |
int |
hashCode() |
String |
toString() |
public static Language get(String lang)
null
.lang
- name or code of languagepublic static Language get(MainOptions opts)
opts
- database optionspublic static Language def()
public String code()
public int compareTo(Language o)
compareTo
in interface Comparable<Language>
Copyright © 2005–2015 BaseX Team. All rights reserved.