Package net.sf.ezmorph.object
Class IdentityObjectMorpher
java.lang.Object
net.sf.ezmorph.object.IdentityObjectMorpher
- All Implemented Interfaces:
Morpher
,ObjectMorpher
Morpher that performs no conversion.
This morpher is a singleton.
This morpher is a singleton.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
static IdentityObjectMorpher
Returns the singleton instanceint
hashCode()
Morphs the input object into an output object of the supported type.morphsTo()
Returns the target Class for conversion.boolean
Returns true if the Morpher supports conversion from this Class.
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
IdentityObjectMorpher
private IdentityObjectMorpher()
-
-
Method Details
-
getInstance
Returns the singleton instance -
equals
-
hashCode
public int hashCode() -
morph
Description copied from interface:ObjectMorpher
Morphs the input object into an output object of the supported type.- Specified by:
morph
in interfaceObjectMorpher
- Parameters:
value
- The input value to be morphed
-
morphsTo
Description copied from interface:Morpher
Returns the target Class for conversion. -
supports
Description copied from interface:Morpher
Returns true if the Morpher supports conversion from this Class.
-