|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.onemind.commons.java.util.StringUtils
String utilities method
Method Summary | |
static java.lang.String |
concat(java.util.Collection l,
java.lang.String delimiter)
Concat the collection l to string with delimenter |
static java.lang.String |
concat(java.lang.Object[] objects,
java.lang.String delimiter)
Concant the object in the array (using objects.toString()), delimited by delimiter |
static boolean |
isNullOrEmpty(java.lang.Object strObject)
Whether the string is empty |
static boolean |
isNullOrEmpty(java.lang.String str)
Whether the string is empty |
static java.lang.String |
substringAfter(java.lang.String str,
java.lang.String pattern)
Return the substring after the first occurrance of pattern |
static java.lang.String |
substringAfterLast(java.lang.String str,
java.lang.String pattern)
Return substring of str after the the last occurrance of pattern |
static java.lang.String |
substringBeforeLast(java.lang.String str,
java.lang.String pattern)
Return substring of str before the last occurrance of str |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static java.lang.String concat(java.util.Collection l, java.lang.String delimiter)
l
- the collectiondelimiter
- the delimiter
public static java.lang.String concat(java.lang.Object[] objects, java.lang.String delimiter)
objects
- the objectsdelimiter
- the delimiter
public static java.lang.String substringAfter(java.lang.String str, java.lang.String pattern)
str
- the strpattern
- the pattern
public static java.lang.String substringAfterLast(java.lang.String str, java.lang.String pattern)
str
- the strpattern
- the pattern
public static java.lang.String substringBeforeLast(java.lang.String str, java.lang.String pattern)
str
- the strpattern
- the pattern
public static boolean isNullOrEmpty(java.lang.String str)
str
- whether is null or zero length (after trim)
public static boolean isNullOrEmpty(java.lang.Object strObject)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |