Package org.apache.felix.scr.impl.helper
Class Coercions
- java.lang.Object
-
- org.apache.felix.scr.impl.helper.Coercions
-
public class Coercions extends Object
This implements the coercion table in RFC 190 5.6.3
-
-
Constructor Summary
Constructors Constructor Description Coercions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Object
coerce(Class<?> type, Object raw, org.osgi.framework.Bundle bundle)
static boolean
coerceToBoolean(Object o)
static byte
coerceToByte(Object o)
static char
coerceToChar(Object o)
static Class<?>
coerceToClass(Object o, org.osgi.framework.Bundle b)
static double
coerceToDouble(Object o)
static <T extends Enum<T>>
TcoerceToEnum(Object o, Class<T> clazz)
static float
coerceToFloat(Object o)
static int
coerceToInteger(Object o)
static long
coerceToLong(Object o)
static short
coerceToShort(Object o)
static String
coerceToString(Object o)
-
-
-
Method Detail
-
coerceToByte
public static byte coerceToByte(Object o)
-
coerceToChar
public static char coerceToChar(Object o)
-
coerceToDouble
public static double coerceToDouble(Object o)
-
coerceToFloat
public static float coerceToFloat(Object o)
-
coerceToInteger
public static int coerceToInteger(Object o)
-
coerceToLong
public static long coerceToLong(Object o)
-
coerceToShort
public static short coerceToShort(Object o)
-
coerceToBoolean
public static boolean coerceToBoolean(Object o)
-
-