|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.lessy.util.StringUtil
public class StringUtil
All kind of String-Utility Methods
| Constructor Summary | |
|---|---|
StringUtil()
|
|
| Method Summary | |
|---|---|
static StringBuilder |
concatenate(Object... objects)
Concats an array of objects |
static String |
concatenateNotEmpty(String s1,
String s2)
Concats 2 objects separated by a space. |
static String |
concatenateNotEmpty(String sep,
String s1,
String s2)
Concats 2 objects with an optional separator. |
static boolean |
isEmpty(String s)
Prueft ob uebergebene Zeichenkette null oder ist bzw nur aus white spaces besteht. |
static String |
objectToString(Object obj)
Gets the toString-Version of the passed object or null if the object is null |
static String |
objectToString(Object obj,
String defValue)
Gets the toString-Version of the passed object or the passed default if the object is null |
static String |
toUpperLower(String value)
Converts a String to the Format "Xxxxxx". |
static String |
trim(String value)
Trim with respect of Nullpointer |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StringUtil()
| Method Detail |
|---|
public static String trim(String value)
value - The value to be trimmed
public static StringBuilder concatenate(Object... objects)
objects - Objects
public static String concatenateNotEmpty(String sep,
String s1,
String s2)
public static String concatenateNotEmpty(String s1,
String s2)
public static boolean isEmpty(String s)
public static String objectToString(Object obj)
obj - Object
public static String objectToString(Object obj,
String defValue)
obj - ObjectdefValue - To be returned if obj is null
public static String toUpperLower(String value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||