Class AttributePlainEnumValueImpl
java.lang.Object
com.commercetools.history.models.common.AttributePlainEnumValueImpl
- All Implemented Interfaces:
AttributePlainEnumValue,io.vrap.rmf.base.client.ModelBase
public class AttributePlainEnumValueImpl
extends Object
implements AttributePlainEnumValue, io.vrap.rmf.base.client.ModelBase
A plain enum value must be unique within the enum, else a DuplicateEnumValues error is returned.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetKey()Key of the value used as a programmatic identifier, for example in facets & filters.getLabel()Descriptive label of the value.inthashCode()voidKey of the value used as a programmatic identifier, for example in facets & filters.voidDescriptive label of the value.toString()Methods inherited from interface com.commercetools.history.models.common.AttributePlainEnumValue
withAttributePlainEnumValueMethods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
AttributePlainEnumValueImpl
public AttributePlainEnumValueImpl()create empty instance
-
-
Method Details
-
getKey
Key of the value used as a programmatic identifier, for example in facets & filters.
- Specified by:
getKeyin interfaceAttributePlainEnumValue- Returns:
- key
-
getLabel
Descriptive label of the value.
- Specified by:
getLabelin interfaceAttributePlainEnumValue- Returns:
- label
-
setKey
Description copied from interface:AttributePlainEnumValueKey of the value used as a programmatic identifier, for example in facets & filters.
- Specified by:
setKeyin interfaceAttributePlainEnumValue- Parameters:
key- value to be set
-
setLabel
Description copied from interface:AttributePlainEnumValueDescriptive label of the value.
- Specified by:
setLabelin interfaceAttributePlainEnumValue- Parameters:
label- value to be set
-
equals
-
hashCode
public int hashCode() -
toString
-