public final class ArrayFrob extends Object
| Modifier and Type | Method and Description |
|---|---|
static Object |
convert(Object o,
Class<? extends Object> c) |
static <T> T[] |
delist(List<T> l,
Class<T> c) |
static <T> Object |
delistprimitive(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> Object |
unwrap(T[] ns) |
static <T> T[] |
wrap(Object o) |
public static <T> T[] wrap(Object o) throws IllegalArgumentException
IllegalArgumentExceptionpublic static <T> Object unwrap(T[] ns) throws IllegalArgumentException
IllegalArgumentExceptionpublic static <T> List<T> listify(T[] ns) throws IllegalArgumentException
IllegalArgumentExceptionpublic static <T> List<T> listify(Object o) throws IllegalArgumentException
IllegalArgumentExceptionpublic static <T> T[] delist(List<T> l, Class<T> c) throws IllegalArgumentException
IllegalArgumentExceptionpublic static <T> Object delistprimitive(List<T> l, Class<T> c) throws IllegalArgumentException
IllegalArgumentExceptionpublic static Object convert(Object o, Class<? extends Object> c) throws IllegalArgumentException
IllegalArgumentExceptionCopyright © 2020. All rights reserved.