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 Objectstatic booleanstatic bytestatic charstatic Class<?> coerceToClass(Object o, org.osgi.framework.Bundle b) static doublestatic <T extends Enum<T>>
TcoerceToEnum(Object o, Class<T> clazz) static floatstatic intstatic longstatic shortstatic Stringprivate static ObjectfirstArrayElement(Object o, Object defaultValue) private static ObjectfirstCollectionElement(Object raw, Object defaultValue) private static ObjectmultipleToSingle(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
-