public final class RecipeHelper extends Object
Modifier and Type | Class and Description |
---|---|
static class |
RecipeHelper.RecipeComparator |
Modifier and Type | Method and Description |
---|---|
static Object |
convert(Type expectedType,
Object value,
boolean lazyRefAllowed) |
static Recipe |
getCaller() |
static Type[] |
getTypeParameters(Class desiredType,
Type type) |
static boolean |
hasDefaultConstructor(Class type) |
static boolean |
isAssignable(Type expectedType,
Type actualType) |
static boolean |
isAssignableFrom(Class expected,
Class actual) |
static boolean |
isAssignableFrom(List<? extends Class<?>> expectedTypes,
List<? extends Class<?>> actualTypes) |
static boolean |
isConvertable(Type type,
Object propertyValue) |
static boolean |
isInstance(Type t,
Object instance) |
static boolean |
isSimpleType(Object o) |
static Class |
loadClass(String name) |
static <K,V> List<Map.Entry<K,V>> |
prioritizeProperties(Map<K,V> properties) |
static Class |
toClass(Type type) |
public static Class loadClass(String name) throws ClassNotFoundException
ClassNotFoundException
public static boolean hasDefaultConstructor(Class type)
public static boolean isSimpleType(Object o)
public static <K,V> List<Map.Entry<K,V>> prioritizeProperties(Map<K,V> properties)
public static boolean isInstance(Type t, Object instance)
public static boolean isConvertable(Type type, Object propertyValue)
public static boolean isAssignableFrom(Class expected, Class actual)
public static boolean isAssignableFrom(List<? extends Class<?>> expectedTypes, List<? extends Class<?>> actualTypes)
public static boolean isAssignable(Type expectedType, Type actualType)
public static Type[] getTypeParameters(Class desiredType, Type type)
Copyright © 2005–2015. All rights reserved.