|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.maven.plugins.graph.tree.Helper
public class Helper
General purpose utility methods
| Field Summary | |
|---|---|
static String |
COMMA
|
static String |
EMPTY_STRING
|
| Constructor Summary | |
|---|---|
Helper()
|
|
| Method Summary | ||
|---|---|---|
static
|
addAll(Collection<T> to,
Collection<T> from)
Null safe method for adding all the elements in "from" to "to" |
|
static
|
decorate()
|
|
static
|
describe(T element,
List<String> properties)
|
|
static
|
describe(T element,
String... properties)
|
|
static
|
getProperty(T bean,
String property)
|
|
static boolean |
isBlank(String s)
True if the string is null or whitespace only, false otherwise |
|
static boolean |
isEmpty(Collection<?> c)
True if the collection is null or has no elements, false otherwise |
|
static List<String> |
splitAndTrimCSVToList(String csv)
Return a List (never null) created from the csv string. |
|
static String[] |
toArray(List<String> strings)
|
|
static
|
toCSV(List<T> list)
|
|
static String |
toEmpty(String s)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String COMMA
public static final String EMPTY_STRING
| Constructor Detail |
|---|
public Helper()
| Method Detail |
|---|
public static final <T> Object getProperty(T bean,
String property)
public static final <T> String toCSV(List<T> list)
public static final <T> org.apache.commons.collections15.map.ListOrderedMap<String,String> describe(T element,
String... properties)
public static final <T> org.apache.commons.collections15.map.ListOrderedMap<String,String> describe(T element,
List<String> properties)
public static final <T> org.apache.commons.collections15.list.SetUniqueList<T> decorate()
public static final String[] toArray(List<String> strings)
public static final String toEmpty(String s)
public static final <T> void addAll(Collection<T> to,
Collection<T> from)
public static final boolean isEmpty(Collection<?> c)
public static final boolean isBlank(String s)
public static final List<String> splitAndTrimCSVToList(String csv)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||