Enum Class MaritalStatus

java.lang.Object
java.lang.Enum<MaritalStatus>
io.github.seenings.info.enumeration.MaritalStatus
All Implemented Interfaces:
Serializable, Comparable<MaritalStatus>, Constable

public enum MaritalStatus extends Enum<MaritalStatus>
婚姻状况
  • Enum Constant Details

    • UNMARRIED

      public static final MaritalStatus UNMARRIED
    • MARRIED

      public static final MaritalStatus MARRIED
    • DIVORCED_WITHOUT_CHILDREN

      public static final MaritalStatus DIVORCED_WITHOUT_CHILDREN
    • DIVORCED_WITH_CHILDREN_LOOK

      public static final MaritalStatus DIVORCED_WITH_CHILDREN_LOOK
    • DIVORCED_WITH_CHILDREN_NOT_LOOK

      public static final MaritalStatus DIVORCED_WITH_CHILDREN_NOT_LOOK
    • BEREAVEMENT

      public static final MaritalStatus BEREAVEMENT
  • Method Details

    • values

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