Class HrisCreateEmployeeRequestDtoMaritalStatusValue
- java.lang.Object
-
- com.stackone.stackone_client_java.models.components.HrisCreateEmployeeRequestDtoMaritalStatusValue
-
public class HrisCreateEmployeeRequestDtoMaritalStatusValue extends java.lang.ObjectWrapper for an "open" enum that can handle unknown values from API responses without runtime errors. Instances are immutable singletons with reference equality. UseasEnum()for switch expressions.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHrisCreateEmployeeRequestDtoMaritalStatusValue.HrisCreateEmployeeRequestDtoMaritalStatusValueEnum
-
Field Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<HrisCreateEmployeeRequestDtoMaritalStatusValue.HrisCreateEmployeeRequestDtoMaritalStatusValueEnum>asEnum()booleanequals(java.lang.Object obj)inthashCode()booleanisKnown()static HrisCreateEmployeeRequestDtoMaritalStatusValueof(java.lang.String value)Returns a HrisCreateEmployeeRequestDtoMaritalStatusValue with the given value.java.lang.StringtoString()java.lang.Stringvalue()static HrisCreateEmployeeRequestDtoMaritalStatusValue[]values()
-
-
-
Field Detail
-
SINGLE
public static final HrisCreateEmployeeRequestDtoMaritalStatusValue SINGLE
-
MARRIED
public static final HrisCreateEmployeeRequestDtoMaritalStatusValue MARRIED
-
COMMON_LAW
public static final HrisCreateEmployeeRequestDtoMaritalStatusValue COMMON_LAW
-
DIVORCED
public static final HrisCreateEmployeeRequestDtoMaritalStatusValue DIVORCED
-
WIDOWED
public static final HrisCreateEmployeeRequestDtoMaritalStatusValue WIDOWED
-
DOMESTIC_PARTNERSHIP
public static final HrisCreateEmployeeRequestDtoMaritalStatusValue DOMESTIC_PARTNERSHIP
-
SEPARATED
public static final HrisCreateEmployeeRequestDtoMaritalStatusValue SEPARATED
-
OTHER
public static final HrisCreateEmployeeRequestDtoMaritalStatusValue OTHER
-
NOT_DISCLOSED
public static final HrisCreateEmployeeRequestDtoMaritalStatusValue NOT_DISCLOSED
-
UNMAPPED_VALUE
public static final HrisCreateEmployeeRequestDtoMaritalStatusValue UNMAPPED_VALUE
-
-
Method Detail
-
of
public static HrisCreateEmployeeRequestDtoMaritalStatusValue of(java.lang.String value)
Returns a HrisCreateEmployeeRequestDtoMaritalStatusValue with the given value. For a specific value the returned object will always be a singleton so reference equality is satisfied when the values are the same.- Parameters:
value- value to be wrapped as HrisCreateEmployeeRequestDtoMaritalStatusValue
-
value
public java.lang.String value()
-
asEnum
public java.util.Optional<HrisCreateEmployeeRequestDtoMaritalStatusValue.HrisCreateEmployeeRequestDtoMaritalStatusValueEnum> asEnum()
-
isKnown
public boolean isKnown()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
values
public static HrisCreateEmployeeRequestDtoMaritalStatusValue[] values()
-
-