public final class Util
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static <T> java.util.Collection<T> |
asCollection(java.lang.Object rawValue,
java.lang.Class<T> clazz)
Returns the given object as a collection and filter it with the given type.
|
static java.lang.String |
firstNonNull(java.lang.String... alternatives)
Returns the first of a series of alternative string values which is not null.
|
static boolean |
isBlank(java.lang.String s)
Tests if a string is blank (i.e.
|
public static java.lang.String firstNonNull(java.lang.String... alternatives)
alternatives - the alernative strings, in order of preference.public static boolean isBlank(java.lang.String s)
s - the string to test.true if and only if the string is blank.public static <T> java.util.Collection<T> asCollection(java.lang.Object rawValue,
java.lang.Class<T> clazz)
T - The type of the result wantedrawValue - The raw valueclazz - The class of the result wanted