com.iparelan.util
Class IntegerMarshallingStrategy

java.lang.Object
  extended by com.iparelan.util.UtilObject
      extended by 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

Field Summary
 
Fields inherited from class com.iparelan.util.UtilObject
LOGGER, MSGS, UTILITIES_LOGGER_NAME
 
Fields inherited from interface com.iparelan.util.MarshallingStrategy
FILE, INTEGER
 
Constructor Summary
IntegerMarshallingStrategy()
           
 
Method Summary
 String marshall(Integer integer)
          Converts the specified value of type T to a String.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IntegerMarshallingStrategy

public IntegerMarshallingStrategy()
Method Detail

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.