common-util

local.tomas.util.collections
Class IdentityMapping<T>

java.lang.Object
  extended by 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

Constructor Summary
IdentityMapping(Class<? extends T> elementClass)
           
 
Method Summary
 T map(Object obj)
          Map objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdentityMapping

public IdentityMapping(Class<? extends T> elementClass)
Method Detail

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

common-util

Copyright © 2005-2007 Tomas Teubner. All Rights Reserved.