Class Subtag

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<Subtag>

    @Deprecated(since="2021-07-29")
    public final class Subtag
    extends java.lang.Object
    implements java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<Subtag>
    Deprecated.
    This API is deprecated as Apache Abdera is a retired project since 2017.
    A Lang tag subtag
    See Also:
    Serialized Form
    • 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,
                      java.lang.String name)
        Deprecated.
        Create a Subtag
      • Subtag

        public Subtag​(Subtag.Type type,
                      java.lang.String name,
                      Subtag prev)
        Deprecated.
        Create a Subtag
    • Method Detail

      • getType

        public Subtag.Type getType()
        Deprecated.
        Get the subtag type
      • getName

        public java.lang.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
      • toString

        public java.lang.String toString()
        Deprecated.
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Deprecated.
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Deprecated.
        Overrides:
        equals in class java.lang.Object
      • clone

        public Subtag clone()
        Deprecated.
      • isDeprecated

        public boolean isDeprecated()
        Deprecated.
        True if this subtag has been deprecated
      • getEnum

        public <T extends java.lang.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 interface java.lang.Comparable<Subtag>