Class PhoneNumberType
- java.lang.Object
-
- com.stackone.stackone_client_java.models.components.PhoneNumberType
-
public class PhoneNumberType extends java.lang.ObjectPhoneNumberTypeType of phone number
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPhoneNumberType._Deserializerstatic classPhoneNumberType._Serializerstatic classPhoneNumberType.PhoneNumberTypeEnum
-
Field Summary
Fields Modifier and Type Field Description static PhoneNumberTypeHOMEstatic PhoneNumberTypeMOBILEstatic PhoneNumberTypeOTHERstatic PhoneNumberTypePERSONALstatic PhoneNumberTypeUNKNOWNstatic PhoneNumberTypeUNMAPPED_VALUEstatic PhoneNumberTypeWORK
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<PhoneNumberType.PhoneNumberTypeEnum>asEnum()booleanequals(java.lang.Object obj)inthashCode()booleanisKnown()static PhoneNumberTypeof(java.lang.String value)Returns a PhoneNumberType with the given value.java.lang.StringtoString()java.lang.Stringvalue()static PhoneNumberType[]values()
-
-
-
Field Detail
-
PERSONAL
public static final PhoneNumberType PERSONAL
-
WORK
public static final PhoneNumberType WORK
-
MOBILE
public static final PhoneNumberType MOBILE
-
HOME
public static final PhoneNumberType HOME
-
UNKNOWN
public static final PhoneNumberType UNKNOWN
-
OTHER
public static final PhoneNumberType OTHER
-
UNMAPPED_VALUE
public static final PhoneNumberType UNMAPPED_VALUE
-
-
Method Detail
-
of
public static PhoneNumberType of(java.lang.String value)
Returns a PhoneNumberType 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 PhoneNumberType
-
value
public java.lang.String value()
-
asEnum
public java.util.Optional<PhoneNumberType.PhoneNumberTypeEnum> 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 PhoneNumberType[] values()
-
-