org.tbull.util
Class Mapper.IdentityMapper<E>
Object
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.
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. |
Mapper.IdentityMapper
public Mapper.IdentityMapper()
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.