local.tomas.util.collections
Class CastMapping<T>
java.lang.Object
local.tomas.util.collections.CastMapping<T>
- Type Parameters:
T - target type
- All Implemented Interfaces:
- ObjectMapping<T>
public class CastMapping<T>
- extends Object
- implements ObjectMapping<T>
Object mapping which casts objects to another type.
- Author:
- tomas.teubner
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CastMapping
public CastMapping(Class<? extends T> targetClass)
- Construct mapping.
- Parameters:
targetClass - target class
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.