Enum Subtag.Type

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Subtag.Type>
    Enclosing class:
    Subtag

    public static enum Subtag.Type
    extends java.lang.Enum<Subtag.Type>
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Subtag.Type valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static Subtag.Type[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • PRIMARY

        public static final Subtag.Type PRIMARY
        Primary language subtag *
      • EXTLANG

        public static final Subtag.Type EXTLANG
        Extended Language subtag *
      • SCRIPT

        public static final Subtag.Type SCRIPT
        Script subtag *
      • REGION

        public static final Subtag.Type REGION
        Region subtag *
      • VARIANT

        public static final Subtag.Type VARIANT
        Variant subtag *
      • SINGLETON

        public static final Subtag.Type SINGLETON
        Singleton subtag *
      • EXTENSION

        public static final Subtag.Type EXTENSION
        Extension subtag *
      • PRIVATEUSE

        public static final Subtag.Type PRIVATEUSE
        Primary-use subtag *
      • GRANDFATHERED

        public static final Subtag.Type GRANDFATHERED
        Grandfathered subtag *
      • WILDCARD

        public static final Subtag.Type WILDCARD
        Wildcard subtag ("*") *
      • SIMPLE

        public static final Subtag.Type SIMPLE
        Simple subtag (ranges) *
    • Method Detail

      • values

        public static Subtag.Type[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Subtag.Type c : Subtag.Type.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Subtag.Type valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null