org.op4j.util
Class NormalisationUtils
Object
org.op4j.util.NormalisationUtils
public class NormalisationUtils
- extends Object
- Since:
- 1.0
- Author:
- Daniel Fernández
Method Summary |
static void |
checkIs(org.javaruntype.type.Type<?> type,
Object targetObject)
|
static void |
checkIsArray(org.javaruntype.type.Type<?> of,
Object targetObject)
|
static void |
checkIsList(org.javaruntype.type.Type<?> of,
Object targetObject)
|
static void |
checkIsMap(org.javaruntype.type.Type<?> keyOf,
org.javaruntype.type.Type<?> valueOf,
Object targetObject)
|
static void |
checkIsMapEntry(org.javaruntype.type.Type<?> keyOf,
org.javaruntype.type.Type<?> valueOf,
Object targetObject)
|
static void |
checkIsSet(org.javaruntype.type.Type<?> of,
Object targetObject)
|
static ExecutionException |
createCastException(Class<?> targetClass,
String cast)
|
static
|
normaliseArray(T[] array,
Class<?> arrayComponentClass)
|
static
|
normaliseList(List<T> list)
|
static
|
normaliseMap(Map<K,V> map)
|
static
|
normaliseMapEntry(Map.Entry<K,V> mapEntry)
|
static
|
normaliseSet(Set<T> set)
|
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
checkIsArray
public static void checkIsArray(org.javaruntype.type.Type<?> of,
Object targetObject)
checkIsList
public static void checkIsList(org.javaruntype.type.Type<?> of,
Object targetObject)
checkIsMap
public static void checkIsMap(org.javaruntype.type.Type<?> keyOf,
org.javaruntype.type.Type<?> valueOf,
Object targetObject)
checkIsMapEntry
public static void checkIsMapEntry(org.javaruntype.type.Type<?> keyOf,
org.javaruntype.type.Type<?> valueOf,
Object targetObject)
checkIsSet
public static void checkIsSet(org.javaruntype.type.Type<?> of,
Object targetObject)
checkIs
public static void checkIs(org.javaruntype.type.Type<?> type,
Object targetObject)
normaliseArray
public static <T> T[] normaliseArray(T[] array,
Class<?> arrayComponentClass)
normaliseList
public static <T> List<T> normaliseList(List<T> list)
normaliseMap
public static <K,V> Map<K,V> normaliseMap(Map<K,V> map)
normaliseMapEntry
public static <K,V> Map.Entry<K,V> normaliseMapEntry(Map.Entry<K,V> mapEntry)
normaliseSet
public static <T> Set<T> normaliseSet(Set<T> set)
createCastException
public static ExecutionException createCastException(Class<?> targetClass,
String cast)
Copyright © 2012 The OP4J team. All Rights Reserved.