org.tbull.util
Class Mapper.IdentityMapper<E>

Object
  extended by org.tbull.util.Mapper.IdentityMapper<E>
All Implemented Interfaces:
Mapper<E,E>
Enclosing interface:
Mapper<I,O>

public static class Mapper.IdentityMapper<E>
extends Object
implements Mapper<E,E>

A Mapper that maps according to an identity function.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.tbull.util.Mapper
Mapper.IdentityMapper<E>
 
Constructor Summary
Mapper.IdentityMapper()
           
 
Method Summary
 E map(E element)
          Maps the element under translation from its original (input) type to the target (output) type of the mapping process.
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Mapper.IdentityMapper

public Mapper.IdentityMapper()
Method Detail

map

public E map(E element)
Description copied from interface: Mapper
Maps the element under translation from its original (input) type to the target (output) type of the mapping process.

Specified by:
map in interface Mapper<E,E>
Parameters:
element - The element to be translated.
Returns:
The translated element.