public class BatooUtils extends Object
| Constructor and Description |
|---|
BatooUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
acronym(String name)
Returns the acronym of the name
|
static <E> void |
addAll(Collection<? extends E> source,
Collection<E> target)
Adds all the elements in the source to target.
|
static void |
gaBoot(Map<String,Object> prop) |
static String |
indent(String str)
Indents the
string by one tab. |
static Map<String,Object> |
loadRuntimeProperties()
Load Batoo runtime properties
|
static String |
lower(String string)
Converts the string to lower case.
|
static <X> List<X> |
subtract(Collection<X> a,
Collection<X> b) |
static <X,Y> Map<X,Y> |
subtract(Map<X,Y> a,
Map<X,Y> b) |
static String |
tree(String str)
Indents the
string by one tab. |
static String |
upper(String string)
Converts the string to upper case.
|
public static String acronym(String name)
name - the namepublic static <E> void addAll(Collection<? extends E> source, Collection<E> target)
E - the type of the collectionssource - the source collectiontarget - the destination collectionpublic static String indent(String str)
string by one tab.str - string to indentpublic static Map<String,Object> loadRuntimeProperties()
public static String lower(String string)
string - the string to convertpublic static <X> List<X> subtract(Collection<X> a, Collection<X> b)
X - the type of the collecionsa - the collection ab - the collection bpublic static <X,Y> Map<X,Y> subtract(Map<X,Y> a, Map<X,Y> b)
X - type of keyY - type of valuea - first mapb - second mappublic static String tree(String str)
string by one tab.str - string to indentpublic static String upper(String string)
string - the string to convertCopyright © 2012-2013 Batoo. All Rights Reserved.