com.iparelan.util
Class IntegerMarshallingStrategy
java.lang.Object
com.iparelan.util.UtilObject
com.iparelan.util.IntegerMarshallingStrategy
- All Implemented Interfaces:
- MarshallingStrategy<Integer>
@Copyright(value="Copyright © 2008, Iparelan Solutions, LLC. All rights reserved.")
public final class IntegerMarshallingStrategy
- extends UtilObject
- implements MarshallingStrategy<Integer>
A strategy for converting an Integer
to a String
(serializing).
- Version:
- July 2008
- Author:
- Greg Mattes
IntegerMarshallingStrategy
public IntegerMarshallingStrategy()
marshall
@Nullable
public String marshall(@Nullable
Integer integer)
- Description copied from interface:
MarshallingStrategy
- Converts the specified value of type
T
to a String
.
- Specified by:
marshall
in interface MarshallingStrategy<Integer>
- Parameters:
integer
- The value to be marshalled from a T
to a String
. May be null
, in which case null
is
produced.
- Returns:
- The marshalled value of
unmarshalled
. null
is
considered to be the marshalled value of null
.
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2008 Iparelan Solutions, LLC. All rights reserved.