Package org.freedesktop.dbus
Class ArrayFrob
- java.lang.Object
-
- org.freedesktop.dbus.ArrayFrob
-
public final class ArrayFrob extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Objectconvert(Object o, Class<? extends Object> c)static <T> T[]delist(List<T> l, Class<T> c)static <T> Objectdelistprimitive(List<T> l, Class<T> c)static Map<Class<?>,Class<?>>getPrimitiveToWrapperTypes()static Map<Class<?>,Class<?>>getWrapperToPrimitiveTypes()static <T> List<T>listify(Object o)static <T> List<T>listify(T[] ns)static Object[]type(Object[] old, Class<Object> c)static <T> Objectunwrap(T[] ns)static <T> T[]wrap(Object o)
-
-
-
Method Detail
-
wrap
public static <T> T[] wrap(Object o) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
unwrap
public static <T> Object unwrap(T[] ns) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
listify
public static <T> List<T> listify(T[] ns) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
listify
public static <T> List<T> listify(Object o) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
delist
public static <T> T[] delist(List<T> l, Class<T> c) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
delistprimitive
public static <T> Object delistprimitive(List<T> l, Class<T> c) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
convert
public static Object convert(Object o, Class<? extends Object> c) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
-