public final class RecipeHelper extends Object
Modifier and Type | Class | Description |
---|---|---|
static class |
RecipeHelper.RecipeComparator |
Modifier and Type | Method | 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 Recipe getCaller()
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 isAssignableFrom(List<? extends Class<?>> expectedTypes, List<? extends Class<?>> actualTypes)
Copyright © 2005–2018. All rights reserved.