public enum Utils extends Enum<Utils>
| Modifier and Type | Method and Description |
|---|---|
static <E extends ScriptUnitException> |
check(boolean cond,
Supplier<E> thrower) |
static <T> T |
convert(Object input,
Class<T> to) |
static <T> Object |
convertIfNecessary(Object input,
Class<T> type) |
static com.github.dakusui.jcunit.framework.TestCase |
createTestCase(com.github.dakusui.jcunit.framework.TestCase.Category category,
com.github.dakusui.jcunit.core.tuples.Tuple tuple) |
static com.github.dakusui.jcunit.framework.TestCase |
createTestCase(com.github.dakusui.jcunit.framework.TestCase testCase) |
static List<ObjectField> |
getAnnotatedFields(Object object,
Class<? extends Annotation> annotationClass) |
static List<ObjectMethod> |
getAnnotatedMethods(Object object,
Class<? extends Annotation> annotationClass,
Map<String,String> aliases) |
static <T extends Annotation> |
getAnnotation(AnnotatedElement annotatedElement,
Class<T> annotationClass,
T defaultInstance) |
static <T> Constructor<T> |
getConstructor(Class<? extends T> clazz) |
static Object |
getFieldValue(Object object,
Field field) |
static String |
indent(int level) |
static boolean |
isCompatible(Object input,
Class<?> to) |
static <T> List<T> |
sort(List<T> list,
Comparator<T> comparator) |
static String |
toALL_CAPS(String inputString) |
static BigDecimal |
toBigDecimal(Number number) |
static Object |
toBigDecimalIfPossible(Object object) |
static String |
toCamelCase(String inputString) |
static Utils |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Utils[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static <T> Class<T> |
wrap(Class<T> c) |
public static Utils[] values()
for (Utils c : Utils.values()) System.out.println(c);
public static Utils valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static <T> Constructor<T> getConstructor(Class<? extends T> clazz)
public static com.github.dakusui.jcunit.framework.TestCase createTestCase(com.github.dakusui.jcunit.framework.TestCase testCase)
public static com.github.dakusui.jcunit.framework.TestCase createTestCase(com.github.dakusui.jcunit.framework.TestCase.Category category,
com.github.dakusui.jcunit.core.tuples.Tuple tuple)
public static <E extends ScriptUnitException> void check(boolean cond, Supplier<E> thrower)
public static BigDecimal toBigDecimal(Number number)
public static <T extends Annotation> T getAnnotation(AnnotatedElement annotatedElement, Class<T> annotationClass, T defaultInstance)
public static List<ObjectMethod> getAnnotatedMethods(Object object, Class<? extends Annotation> annotationClass, Map<String,String> aliases)
public static List<ObjectField> getAnnotatedFields(Object object, Class<? extends Annotation> annotationClass)
public static <T> List<T> sort(List<T> list, Comparator<T> comparator)
public static String indent(int level)
Copyright © 2017. All rights reserved.