|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.aries.jmx.util.TypeUtils
public class TypeUtils
This class provides common utilities related to type conversions for the MBean implementations
Field Summary | |
---|---|
static Map<String,Class<? extends Object>> |
mathTypes
|
static Map<Class<? extends Object>,Class<? extends Object>> |
primitiveToWrapper
|
static Map<String,Class<? extends Object>> |
primitiveTypes
|
static Map<String,Class<? extends Object>> |
types
|
static Map<String,Class<? extends Object>> |
wrapperTypes
|
Method Summary | ||
---|---|---|
static Map<String,String> |
fromDictionary(Dictionary<String,String> dictionary)
Converts a Dictionary object to a Map |
|
static
|
fromString(Class<T> type,
String value)
Converts a String value to an Object of the specified type |
|
static Long[] |
toLong(long[] array)
Converts primitive long[] array to Long[] |
|
static long[] |
toPrimitive(Long[] array)
Converts Long[] array to primitive |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static Map<String,Class<? extends Object>> primitiveTypes
public static Map<String,Class<? extends Object>> wrapperTypes
public static Map<String,Class<? extends Object>> mathTypes
public static Map<Class<? extends Object>,Class<? extends Object>> primitiveToWrapper
public static Map<String,Class<? extends Object>> types
Method Detail |
---|
public static Map<String,String> fromDictionary(Dictionary<String,String> dictionary)
Dictionary
object to a Map
dictionary
-
public static Long[] toLong(long[] array)
array
-
public static long[] toPrimitive(Long[] array)
array
-
public static <T> T fromString(Class<T> type, String value)
type
- one of types listed in types
value
-
type
IllegalArgumentException
- if type or value are null or if the Class type does not support a valueOf() or cannot be converted to
a wrapper type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |