Package org.apache.abdera.i18n.rfc4646
Class Lang
java.lang.Object
org.apache.abdera.i18n.rfc4646.Lang
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<org.apache.abdera.i18n.rfc4646.SubtagSet>,Iterable<Subtag>
Deprecated.
This API is deprecated as Apache Abdera is a retired project since 2017.
Implementation of RFC 4646 Language Tags
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasList()Deprecated.asRange()Deprecated.Get this Lang as a Language-Range for use with matchingDeprecated.Produce a canonicalized copy of this lang tagclone()Deprecated.Clone this Language tagintcompareTo(org.apache.abdera.i18n.rfc4646.SubtagSet o) Deprecated.booleanDeprecated.booleancontains(String tag, Subtag.Type type) Deprecated.booleanDeprecated.intcount()Deprecated.booleanDeprecated.static StringfromLocale(Locale locale) Deprecated.get(int index) Deprecated.Deprecated.Get the beginning of the extension section.Deprecated.Get the Extlang tag.Deprecated.Get the Language subtagDeprecated.Get a Locale object derived from this language tagDeprecated.Get a Lang tag that drops the last subtagDeprecated.Get the beginning of the private-use section.Deprecated.Get the Region subtagDeprecated.Get the Script subtagDeprecated.Get the Variant subtaginthashCode()Deprecated.booleanDeprecated.Return true if the specified lang tag is the parent of this onebooleanDeprecated.Return true if this lang tag contains any deprecated subtagsbooleanisParentOf(Lang lang) Deprecated.Return true if the specified lang tag is the child of this onebooleanisValid()Deprecated.iterator()Deprecated.intlength()Deprecated.static LangDeprecated.Parse a Lang tagSubtag[]toArray()Deprecated.toString()Deprecated.Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
Lang
public Lang()Deprecated.Create a Lang object using the default locale -
Lang
Deprecated.Create a Lang object using the specified locale -
Lang
Deprecated.Create a lang object
-
-
Method Details
-
getLanguage
Deprecated.Get the Language subtag -
getLocale
Deprecated.Get a Locale object derived from this language tag -
getExtLang
Deprecated.Get the Extlang tag. If there are multiple extlang tags, this will return the first one. The rest can be retrieved by following Subtag.getNext() -
getScript
Deprecated.Get the Script subtag -
getRegion
Deprecated.Get the Region subtag -
getVariant
Deprecated.Get the Variant subtag -
getExtension
Deprecated.Get the beginning of the extension section. This will return the first prefix subtag of the first set of extension subtags. -
getPrivateUse
Deprecated.Get the beginning of the private-use section. This will return the x prefix subtag -
asRange
Deprecated.Get this Lang as a Language-Range for use with matching -
clone
Deprecated.Clone this Language tag -
canonicalize
Deprecated.Produce a canonicalized copy of this lang tag -
isDeprecated
public boolean isDeprecated()Deprecated.Return true if this lang tag contains any deprecated subtags -
getParent
Deprecated.Get a Lang tag that drops the last subtag -
isChildOf
Deprecated.Return true if the specified lang tag is the parent of this one -
isParentOf
Deprecated.Return true if the specified lang tag is the child of this one -
parse
Deprecated.Parse a Lang tag -
fromLocale
Deprecated. -
toString
Deprecated. -
iterator
Deprecated. -
contains
Deprecated. -
contains
Deprecated. -
contains
Deprecated. -
length
public int length()Deprecated. -
isValid
public boolean isValid()Deprecated. -
count
public int count()Deprecated. -
get
Deprecated. -
hashCode
public int hashCode()Deprecated. -
equals
Deprecated. -
toArray
Deprecated. -
asList
Deprecated. -
compareTo
public int compareTo(org.apache.abdera.i18n.rfc4646.SubtagSet o) Deprecated.- Specified by:
compareToin interfaceComparable<org.apache.abdera.i18n.rfc4646.SubtagSet>
-