Class AttributeLocalizedEnumValueImpl
java.lang.Object
com.commercetools.history.models.common.AttributeLocalizedEnumValueImpl
- All Implemented Interfaces:
AttributeLocalizedEnumValue,io.vrap.rmf.base.client.ModelBase
public class AttributeLocalizedEnumValueImpl
extends Object
implements AttributeLocalizedEnumValue, io.vrap.rmf.base.client.ModelBase
A localized 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, localized label of the value.inthashCode()voidKey of the value used as a programmatic identifier, for example in facets & filters.voidsetLabel(LocalizedString label) Descriptive, localized label of the value.toString()Methods inherited from interface com.commercetools.history.models.common.AttributeLocalizedEnumValue
withAttributeLocalizedEnumValueMethods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
AttributeLocalizedEnumValueImpl
public AttributeLocalizedEnumValueImpl()create empty instance
-
-
Method Details
-
getKey
Key of the value used as a programmatic identifier, for example in facets & filters.
- Specified by:
getKeyin interfaceAttributeLocalizedEnumValue- Returns:
- key
-
getLabel
Descriptive, localized label of the value.
- Specified by:
getLabelin interfaceAttributeLocalizedEnumValue- Returns:
- label
-
setKey
Description copied from interface:AttributeLocalizedEnumValueKey of the value used as a programmatic identifier, for example in facets & filters.
- Specified by:
setKeyin interfaceAttributeLocalizedEnumValue- Parameters:
key- value to be set
-
setLabel
Description copied from interface:AttributeLocalizedEnumValueDescriptive, localized label of the value.
- Specified by:
setLabelin interfaceAttributeLocalizedEnumValue- Parameters:
label- value to be set
-
equals
-
hashCode
public int hashCode() -
toString
-