public enum Utils extends Enum<Utils>
| Modifier and Type | Method and Description |
|---|---|
static com.github.dakusui.jcunit.core.tuples.Tuple |
append(com.github.dakusui.jcunit.core.tuples.Tuple tuple,
String key,
Object value) |
static <E extends ScriptiveUnitException> |
check(boolean cond,
Supplier<E> thrower) |
static <E extends ScriptiveUnitException,V> |
check(V target,
Predicate<? super V> predicate,
Supplier<? extends E> thrower) |
static <T> T |
convert(Object input,
Class<T> to) |
static <T> Object |
convertIfNecessary(Object input,
Class<T> type) |
static org.codehaus.jackson.node.ObjectNode |
deepMerge(org.codehaus.jackson.node.ObjectNode source,
org.codehaus.jackson.node.ObjectNode target) |
static com.github.dakusui.jcunit.core.tuples.Tuple |
filterSingleLevelFactorsOut(com.github.dakusui.jcunit.core.tuples.Tuple tuple,
List<com.github.dakusui.jcunit.core.factor.Factor> factors) |
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 String |
iterableToString(Iterable<?> i) |
static InputStream |
openResourceAsStream(String resourceName) |
static void |
performActionWithLogging(com.github.dakusui.actionunit.Action action) |
static org.codehaus.jackson.JsonNode |
readJsonNodeFromStream(InputStream is) |
static <T> List<T> |
sort(List<T> list,
Comparator<T> comparator) |
static String |
template(String s,
Map<String,Object> map) |
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 com.github.dakusui.jcunit.core.tuples.Tuple filterSingleLevelFactorsOut(com.github.dakusui.jcunit.core.tuples.Tuple tuple,
List<com.github.dakusui.jcunit.core.factor.Factor> factors)
public static com.github.dakusui.jcunit.core.tuples.Tuple append(com.github.dakusui.jcunit.core.tuples.Tuple tuple,
String key,
Object value)
public static void performActionWithLogging(com.github.dakusui.actionunit.Action action)
public static org.codehaus.jackson.node.ObjectNode deepMerge(org.codehaus.jackson.node.ObjectNode source,
org.codehaus.jackson.node.ObjectNode target)
public static <T> Constructor<T> getConstructor(Class<? extends T> clazz)
public static <E extends ScriptiveUnitException> void check(boolean cond, Supplier<E> thrower)
public static <E extends ScriptiveUnitException,V> V check(V target, Predicate<? super V> predicate, Supplier<? extends 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)
public static InputStream openResourceAsStream(String resourceName)
public static org.codehaus.jackson.JsonNode readJsonNodeFromStream(InputStream is)
Copyright © 2017. All rights reserved.