local.tomas.util.collections
Class IdentityMapping<T>
java.lang.Object
local.tomas.util.collections.IdentityMapping<T>
- Type Parameters:
T - object type
- All Implemented Interfaces:
- ObjectMapping<T>
public class IdentityMapping<T>
- extends Object
- implements ObjectMapping<T>
Identity mapping.
Maps objects to themselves.
- Author:
- tomas.teubner
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IdentityMapping
public IdentityMapping(Class<? extends T> elementClass)
map
public T map(Object obj)
- Description copied from interface:
ObjectMapping
- Map objects.
- Specified by:
map in interface ObjectMapping<T>
- Parameters:
obj - source object
- Returns:
- mapped object
Copyright © 2005-2007 Tomas Teubner. All Rights Reserved.