Enum Gender

java.lang.Object
java.lang.Enum<Gender>
com.lokalized.Gender
All Implemented Interfaces:
LanguageForm, Serializable, Comparable<Gender>, Constable

public enum Gender extends Enum<Gender> implements LanguageForm
Language gender forms.
Author:
Mark Allen
  • Enum Constant Details

    • MASCULINE

      public static final Gender MASCULINE
      Masculine gender.
    • FEMININE

      public static final Gender FEMININE
      Feminine gender.
    • COMMON

      public static final Gender COMMON
      Common gender (masculine + feminine), e.g. Swedish/Danish/Dutch "en" words.
    • NEUTER

      public static final Gender NEUTER
      Neutral/unspecified gender.
  • Method Details

    • values

      public static Gender[] 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 Gender 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