Package org.apache.felix.scr.impl.helper
Class Coercions
java.lang.Object
org.apache.felix.scr.impl.helper.Coercions
This implements the coercion table in RFC 190 5.6.3
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Object
static boolean
static byte
static char
static Class<?>
coerceToClass
(Object o, org.osgi.framework.Bundle b) static double
static <T extends Enum<T>>
TcoerceToEnum
(Object o, Class<T> clazz) static float
static int
static long
static short
static String
private static Object
firstArrayElement
(Object o, Object defaultValue) private static Object
firstCollectionElement
(Object raw, Object defaultValue) private static Object
multipleToSingle
(Object o, Object defaultValue)
-
Field Details
-
byte0
private static final byte byte0- See Also:
-
char0
private static final char char0- See Also:
-
double0
private static final double double0- See Also:
-
float0
private static final float float0- See Also:
-
int0
private static final int int0- See Also:
-
long0
private static final long long0- See Also:
-
short0
private static final short short0- See Also:
-
-
Constructor Details
-
Coercions
public Coercions()
-
-
Method Details
-
coerce
-
coerceToByte
-
coerceToChar
-
coerceToDouble
-
coerceToFloat
-
coerceToInteger
-
coerceToLong
-
coerceToShort
-
coerceToString
-
coerceToBoolean
-
coerceToClass
-
coerceToEnum
-
multipleToSingle
-
firstCollectionElement
-
firstArrayElement
-