Class CreateAnswerValue
- java.lang.Object
-
- com.stackone.stackone_client_java.models.components.CreateAnswerValue
-
public class CreateAnswerValue extends java.lang.ObjectCreateAnswerValueThe type of the answer.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreateAnswerValue._Deserializerstatic classCreateAnswerValue._Serializerstatic classCreateAnswerValue.CreateAnswerValueEnum
-
Field Summary
Fields Modifier and Type Field Description static CreateAnswerValueATTACHMENTstatic CreateAnswerValueBOOLEANstatic CreateAnswerValueDATEstatic CreateAnswerValueLONG_TEXTstatic CreateAnswerValueMULTI_SELECTstatic CreateAnswerValueNUMBERstatic CreateAnswerValueREFERENCE_CHECKstatic CreateAnswerValueSHORT_TEXTstatic CreateAnswerValueSINGLE_SELECTstatic CreateAnswerValueUNMAPPED_VALUEstatic CreateAnswerValueURLstatic CreateAnswerValueVIDEO
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<CreateAnswerValue.CreateAnswerValueEnum>asEnum()booleanequals(java.lang.Object obj)inthashCode()booleanisKnown()static CreateAnswerValueof(java.lang.String value)Returns a CreateAnswerValue with the given value.java.lang.StringtoString()java.lang.Stringvalue()static CreateAnswerValue[]values()
-
-
-
Field Detail
-
SHORT_TEXT
public static final CreateAnswerValue SHORT_TEXT
-
LONG_TEXT
public static final CreateAnswerValue LONG_TEXT
-
ATTACHMENT
public static final CreateAnswerValue ATTACHMENT
-
MULTI_SELECT
public static final CreateAnswerValue MULTI_SELECT
-
SINGLE_SELECT
public static final CreateAnswerValue SINGLE_SELECT
-
BOOLEAN
public static final CreateAnswerValue BOOLEAN
-
NUMBER
public static final CreateAnswerValue NUMBER
-
DATE
public static final CreateAnswerValue DATE
-
VIDEO
public static final CreateAnswerValue VIDEO
-
REFERENCE_CHECK
public static final CreateAnswerValue REFERENCE_CHECK
-
URL
public static final CreateAnswerValue URL
-
UNMAPPED_VALUE
public static final CreateAnswerValue UNMAPPED_VALUE
-
-
Method Detail
-
of
public static CreateAnswerValue of(java.lang.String value)
Returns a CreateAnswerValue 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 CreateAnswerValue
-
value
public java.lang.String value()
-
asEnum
public java.util.Optional<CreateAnswerValue.CreateAnswerValueEnum> 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 CreateAnswerValue[] values()
-
-