public class CustomBehaviorUtils extends Object
Constructor and Description |
---|
CustomBehaviorUtils() |
Modifier and Type | Method and Description |
---|---|
static <U extends CustomFieldBehaviorTag> |
get(Class<U> behaviorClass,
List<Class<? extends CustomFieldBehaviorTag>> behaviors)
Returns the field behavior behavior of the requested type (if there is one).
|
static <C extends CustomClassBehaviorTag> |
getBehavior(Class<?> clazz,
Class<C> behaviorClass)
Returns the class behavior of the requested type (if there is one).
|
public static <C extends CustomClassBehaviorTag> Optional<CustomClassBehaviorTag> getBehavior(Class<?> clazz, Class<C> behaviorClass)
public static <U extends CustomFieldBehaviorTag> Optional<U> get(Class<U> behaviorClass, List<Class<? extends CustomFieldBehaviorTag>> behaviors)