public class Coercions extends Object
Constructor and Description |
---|
Coercions() |
Modifier and Type | Method and 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>> |
coerceToEnum(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) |
public static byte coerceToByte(Object o)
public static char coerceToChar(Object o)
public static double coerceToDouble(Object o)
public static float coerceToFloat(Object o)
public static int coerceToInteger(Object o)
public static long coerceToLong(Object o)
public static short coerceToShort(Object o)
public static boolean coerceToBoolean(Object o)
Copyright © 2006–2020 The Apache Software Foundation. All rights reserved.