public final class IntegerAttributeValueMarshaller extends Object implements AttributeValueMarshaller<Integer>
Constructor and Description |
---|
IntegerAttributeValueMarshaller() |
Modifier and Type | Method and Description |
---|---|
String |
marshal(AttributeValue<Integer> value)
Marshals the given typed value as a
String . |
AttributeValue<Integer> |
unmarshal(String value,
boolean isNonLatinScriptAlternateVersion)
Unmarshals the given
String as a typed value. |
@Nonnull public String marshal(@Nonnull AttributeValue<Integer> value)
AttributeValueMarshaller
String
.marshal
in interface AttributeValueMarshaller<Integer>
value
- the typed value to marshal as a String
.String
representation of the given typed value.@Nonnull public AttributeValue<Integer> unmarshal(@Nonnull String value, boolean isNonLatinScriptAlternateVersion) throws AttributeValueMarshallingException
AttributeValueMarshaller
String
as a typed value.unmarshal
in interface AttributeValueMarshaller<Integer>
value
- the String
representation to unmarshal to a typed value.isNonLatinScriptAlternateVersion
- indicates whether the provided value is the non-latin script alternate
version of another attribute value.String
representation.AttributeValueMarshallingException
- thrown when unmarshalling an attribute valueCopyright © 2020. All Rights Reserved.