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,
PropertyEditorRegistry registry) |
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,
PropertyEditorRegistry registry) |
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 isConvertable(Type type, Object propertyValue, PropertyEditorRegistry registry)
public static Object convert(Type expectedType, Object value, boolean lazyRefAllowed, PropertyEditorRegistry registry)
public static boolean isAssignableFrom(List<? extends Class<?>> expectedTypes, List<? extends Class<?>> actualTypes)
Copyright © 2005–2019. All rights reserved.