Package org.apache.abdera.i18n.rfc4646
Class Subtag
- java.lang.Object
-
- org.apache.abdera.i18n.rfc4646.Subtag
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Subtag>
@Deprecated(since="2021-07-29") public final class Subtag extends Object implements Serializable, Cloneable, Comparable<Subtag>
Deprecated.This API is deprecated as Apache Abdera is a retired project since 2017.A Lang tag subtag- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSubtag.TypeDeprecated.
-
Constructor Summary
Constructors Constructor Description Subtag(Extlang extlang)Deprecated.Create a SubtagSubtag(Language language)Deprecated.Create a SubtagSubtag(Region region)Deprecated.Create a SubtagSubtag(Script script)Deprecated.Create a SubtagSubtag(Singleton singleton)Deprecated.Create a SubtagSubtag(Variant variant)Deprecated.Create a SubtagSubtag(Subtag.Type type, String name)Deprecated.Create a SubtagSubtag(Subtag.Type type, String name, Subtag prev)Deprecated.Create a Subtag
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Subtagcanonicalize()Deprecated.Return the canonicalized version of this subtagSubtagclone()Deprecated.intcompareTo(Subtag o)Deprecated.booleanequals(Object obj)Deprecated.<T extends Enum<?>>
TgetEnum()Deprecated.Get this subtags Enum, allowing the subtag to be verifiedStringgetName()Deprecated.Get the subtag valueSubtaggetNext()Deprecated.Get the next subtagSubtaggetPrevious()Deprecated.Get the previous subtagSubtag.TypegetType()Deprecated.Get the subtag typeinthashCode()Deprecated.booleanisDeprecated()Deprecated.True if this subtag has been deprecatedbooleanisValid()Deprecated.True if this subtag is validstatic SubtagnewWildcard()Deprecated.Create a new wildcard subtagStringtoString()Deprecated.
-
-
-
Constructor Detail
-
Subtag
public Subtag(Language language)
Deprecated.Create a Subtag
-
Subtag
public Subtag(Script script)
Deprecated.Create a Subtag
-
Subtag
public Subtag(Region region)
Deprecated.Create a Subtag
-
Subtag
public Subtag(Variant variant)
Deprecated.Create a Subtag
-
Subtag
public Subtag(Extlang extlang)
Deprecated.Create a Subtag
-
Subtag
public Subtag(Singleton singleton)
Deprecated.Create a Subtag
-
Subtag
public Subtag(Subtag.Type type, String name)
Deprecated.Create a Subtag
-
Subtag
public Subtag(Subtag.Type type, String name, Subtag prev)
Deprecated.Create a Subtag
-
-
Method Detail
-
getType
public Subtag.Type getType()
Deprecated.Get the subtag type
-
getName
public String getName()
Deprecated.Get the subtag value
-
getPrevious
public Subtag getPrevious()
Deprecated.Get the previous subtag
-
getNext
public Subtag getNext()
Deprecated.Get the next subtag
-
clone
public Subtag clone()
Deprecated.
-
isDeprecated
public boolean isDeprecated()
Deprecated.True if this subtag has been deprecated
-
getEnum
public <T extends Enum<?>> T getEnum()
Deprecated.Get this subtags Enum, allowing the subtag to be verified
-
isValid
public boolean isValid()
Deprecated.True if this subtag is valid
-
canonicalize
public Subtag canonicalize()
Deprecated.Return the canonicalized version of this subtag
-
newWildcard
public static Subtag newWildcard()
Deprecated.Create a new wildcard subtag
-
compareTo
public int compareTo(Subtag o)
Deprecated.- Specified by:
compareToin interfaceComparable<Subtag>
-
-