Class Gender


  • public final class Gender
    extends EnumType
    Enum type Gender.
    • Field Detail

      • MALE

        public static final Gender.Item MALE
        The male item.
      • FEMALE

        public static final Gender.Item FEMALE
        The female item.
      • SINGLETON

        public static final Gender SINGLETON
        The only instance of this class. This field is never null.
    • Method Detail

      • getItemByValue

        public static Gender.Item getItemByValue​(java.lang.String value)
                                          throws TypeValueException
        Gets the Item for the specified string value.
        Parameters:
        value - the value for which to lookup the matching Gender.Item instance, can be null, in which case null is also returned.
        Returns:
        the matching Gender.Item instance, or null if and only if value == null.
        Throws:
        TypeValueException - if the specified value does not denote an existing item.
      • getItemByName

        public static Gender.Item getItemByName​(java.lang.String name)
                                         throws TypeValueException
        Gets the Item for the specified string name.
        Parameters:
        name - the name for which to lookup the matching Gender.Item instance, can be null, in which case null is also returned.
        Returns:
        the matching Gender.Item instance, or null if and only if name == null.
        Throws:
        TypeValueException - if the specified name does not denote an existing item.
      • getDescription

        public java.lang.String getDescription()
        Overrides:
        getDescription in class Type