Class AttributePlainEnumValueImpl
java.lang.Object
com.commercetools.api.models.product_type.AttributePlainEnumValueImpl
- All Implemented Interfaces:
AttributePlainEnumValue
,WithKey
,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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getKey()
Key of the value used as a programmatic identifier, for example in facets & filters.getLabel()
Descriptive label of the value.int
hashCode()
void
Key of the value used as a programmatic identifier, for example in facets & filters.void
Descriptive label of the value.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.product_type.AttributePlainEnumValue
withAttributePlainEnumValue
Methods 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:
getKey
in interfaceAttributePlainEnumValue
- Specified by:
getKey
in interfaceWithKey
- Returns:
- key
-
getLabel
Descriptive label of the value.
- Specified by:
getLabel
in interfaceAttributePlainEnumValue
- Returns:
- label
-
setKey
Description copied from interface:AttributePlainEnumValue
Key of the value used as a programmatic identifier, for example in facets & filters.
- Specified by:
setKey
in interfaceAttributePlainEnumValue
- Parameters:
key
- value to be set
-
setLabel
Description copied from interface:AttributePlainEnumValue
Descriptive label of the value.
- Specified by:
setLabel
in interfaceAttributePlainEnumValue
- Parameters:
label
- value to be set
-
equals
-
hashCode
-