Enum Class GenderCode

java.lang.Object
java.lang.Enum<GenderCode>
net.tangly.core.GenderCode
All Implemented Interfaces:
Serializable, Comparable<GenderCode>, Constable, Code

public enum GenderCode extends Enum<GenderCode> implements Code
Define the gender of a natural person. Gender is mainly used to define how you address the person in written communication.
  • Enum Constant Details

  • Method Details

    • values

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

      public static GenderCode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • id

      public int id()
      Description copied from interface: Code
      Returns the unique identifier of a code table entity.
      Specified by:
      id in interface Code
      Returns:
      unique identifier of the code table instance
    • code

      public String code()
      Description copied from interface: Code
      Returns the human-readable representation of a code table entity.
      Specified by:
      code in interface Code
      Returns:
      human-readable code
    • enabled

      public boolean enabled()
      Description copied from interface: Code
      Returns true if the code table instance is enabled.
      Specified by:
      enabled in interface Code
      Returns:
      flag indicating if the code is enabled or archived