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 class
Subtag.Type
Deprecated.
-
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 Subtag
canonicalize()
Deprecated.Return the canonicalized version of this subtagSubtag
clone()
Deprecated.int
compareTo(Subtag o)
Deprecated.boolean
equals(Object obj)
Deprecated.<T extends Enum<?>>
TgetEnum()
Deprecated.Get this subtags Enum, allowing the subtag to be verifiedString
getName()
Deprecated.Get the subtag valueSubtag
getNext()
Deprecated.Get the next subtagSubtag
getPrevious()
Deprecated.Get the previous subtagSubtag.Type
getType()
Deprecated.Get the subtag typeint
hashCode()
Deprecated.boolean
isDeprecated()
Deprecated.True if this subtag has been deprecatedboolean
isValid()
Deprecated.True if this subtag is validstatic Subtag
newWildcard()
Deprecated.Create a new wildcard subtagString
toString()
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:
compareTo
in interfaceComparable<Subtag>
-
-