com.taco.util
Class BooleanToIntegerMapper

java.lang.Object
  extended by com.taco.util.BooleanToIntegerMapper
All Implemented Interfaces:
IObjectMapper, java.io.Serializable

public final class BooleanToIntegerMapper
extends java.lang.Object
implements IObjectMapper, java.io.Serializable

An implementation of IObjectMapper that converts a true Boolean to 1, and everything else to 0.

See Also:
Serialized Form

Field Summary
static BooleanToIntegerMapper instance
          The singleton instance of this class.
 
Method Summary
 java.lang.Object map(java.lang.Object obj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

public static final BooleanToIntegerMapper instance
The singleton instance of this class.

Method Detail

map

public java.lang.Object map(java.lang.Object obj)
Specified by:
map in interface IObjectMapper