|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ge.research.utils.StringUtils
A utility class with common useful string constants and common useful string methods.
| Field Summary | |
static java.lang.String |
DOUBLEQUOTE
The double quotation mark Defined here for efficiency, rather than have to construct a new String object each time to deal with the quotation marks. |
static java.lang.String |
EMPTY_STRING
The empty string Defined here for efficiency, rather than have to construct a new String object each time to deal with the empty string. |
protected static java.lang.String |
LOWERCASE_LETTERS
The set of lowercase letters |
static java.lang.String |
NEWLINE
The new line character Defined here for efficiency, rather than have to construct a new String object each time to deal with a newline. |
static java.lang.String |
SINGLEQUOTE
The single quotation mark Defined here for efficiency, rather than have to construct a new String object each time to deal with the quotation marks. |
static java.lang.String |
SPACE
The space chacter mark Defined here for efficiency, rather than have to construct a new String object each time to deal with a space string. |
static java.lang.String |
TAB
The tab character Defined here for efficiency, rather than have to construct a new String object each time to deal with a tab. |
protected static java.lang.String |
UPPERCASE_LETTERS
The set of uppercase letters |
| Constructor Summary | |
StringUtils()
|
|
| Method Summary | |
static java.lang.String |
initCap(java.lang.String string)
Capitalizes the first character of the string. |
static boolean |
isNullOrEmpty(java.lang.String testcase)
Checks the testcase to see if it is null or equal to the EMPTY_STRING |
static java.lang.String |
separateInitCapString(java.lang.String string)
Separates a string that is in "INIT CAP" form, i.e. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String EMPTY_STRING
public static final java.lang.String SPACE
public static final java.lang.String DOUBLEQUOTE
public static final java.lang.String SINGLEQUOTE
public static final java.lang.String NEWLINE
public static final java.lang.String TAB
protected static final java.lang.String UPPERCASE_LETTERS
protected static final java.lang.String LOWERCASE_LETTERS
| Constructor Detail |
public StringUtils()
| Method Detail |
public static final boolean isNullOrEmpty(java.lang.String testcase)
testcase to see if it is null or equal to the EMPTY_STRING
testcase - the string to test
true if testcase is null or equal to EMPTY_STRING;
false otherwise.public static java.lang.String initCap(java.lang.String string)
string - the string to capitalize
null if the string was null to begin with.public static java.lang.String separateInitCapString(java.lang.String string)
string - the string to insert spaces into
null if the string was null to begin with.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||