Package org.aksw.commons.util.reflect
Class Caster
- java.lang.Object
-
- org.aksw.commons.util.reflect.Caster
-
public class Caster extends Object
Utility class for common casts. TODO Make this more configurable.- Author:
- Claus Stadler Date: 9/17/11 Time: 5:31 PM
-
-
Constructor Summary
Constructors Constructor Description Caster()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(String[] args)static BooleantoBoolean(String a)static DoubletoDouble(Float a)static DoubletoDouble(Integer a)static DoubletoDouble(Long a)static DoubletoDouble(String a)static FloattoFloat(Double a)static FloattoFloat(Integer a)static FloattoFloat(Long a)static FloattoFloat(String s)static IntegertoInteger(Double a)static IntegertoInteger(Float a)static IntegertoInteger(Long a)static IntegertoInteger(String a)static LongtoLong(Double a)static LongtoLong(Float a)static LongtoLong(Integer a)static LongtoLong(String a)static StringtoString(Object o)static ObjecttryCast(Object value, Class<?> targetClass)
-
-
-
Method Detail
-
main
public static void main(String[] args)
-
-