From - To - public class CastTransformer<From,To> extends Object implements ETransformer<From,To>
ETransformer will cast from the type given in the constructor to the desired type.
If no cast can be made (i.e. a regular cast would throw a NullPointerException or the value to be transformed is null,
null is returned.| Constructor and Description |
|---|
CastTransformer(Class<To> type) |
public To from(From from)
ETransformerfrom in interface ETransformer<From,To>Copyright © 2013 Atomic Leopard. All Rights Reserved.