Enum Locale

java.lang.Object
java.lang.Enum<Locale>
it.uniroma1.lcl.babelnet.data.Locale
All Implemented Interfaces:
Tag<Locale>, Serializable, Comparable<Locale>, java.lang.constant.Constable

public enum Locale extends Enum<Locale> implements Tag<Locale>
Enumeration describing lexical and orthographic variations
  • Enum Constant Details

    • AFRICA

      public static final Locale AFRICA
    • ALASKA

      public static final Locale ALASKA
    • AMERICA

      public static final Locale AMERICA
    • AUSTRALIA

      public static final Locale AUSTRALIA
    • CANADA

      public static final Locale CANADA
    • EAST_AFRICA

      public static final Locale EAST_AFRICA
    • ENGLAND

      public static final Locale ENGLAND
    • HAWAII

      public static final Locale HAWAII
    • HONG_KONG

      public static final Locale HONG_KONG
    • INDIA

      public static final Locale INDIA
    • IRELAND

      public static final Locale IRELAND
    • MIDLAND_US

      public static final Locale MIDLAND_US
    • MIDWESTERN_US

      public static final Locale MIDWESTERN_US
    • NEW_ZEALAND

      public static final Locale NEW_ZEALAND
    • NORTHERN_ENGLAND

      public static final Locale NORTHERN_ENGLAND
    • NORTHERN_IRELAND

      public static final Locale NORTHERN_IRELAND
    • PHILIPPINES

      public static final Locale PHILIPPINES
    • SCOTLAND

      public static final Locale SCOTLAND
    • SINGAPORE

      public static final Locale SINGAPORE
    • SOUTH_AFRICA

      public static final Locale SOUTH_AFRICA
    • SOUTHERN_ENGLAND

      public static final Locale SOUTHERN_ENGLAND
    • UK

      public static final Locale UK
    • US

      public static final Locale US
    • WALES

      public static final Locale WALES
    • WESTERN_US

      public static final Locale WESTERN_US
    • BRAZIL

      public static final Locale BRAZIL
    • PORTUGAL

      public static final Locale PORTUGAL
  • Method Details

    • values

      public static Locale[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static Locale valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • coarseGrained

      public Locale coarseGrained()
      Returns a coarse grained Locale
      Returns:
      a coarse grained Locale
    • getValue

      public Locale getValue()
      Description copied from interface: Tag
      Returns the tag value.
      Specified by:
      getValue in interface Tag<Locale>
      Returns:
      the tag value