|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ujac.util.StringUtils
public class StringUtils
Name: StringUtils
Description: Class providing common utility methods for String operations.
| Constructor Summary | |
|---|---|
StringUtils()
|
|
| Method Summary | |
|---|---|
static String |
capitalize(String text)
Raises the first character of the given String. |
static boolean |
equals(String a,
String b)
Checks if the given objects are equal. |
static boolean |
equals(String a,
String b,
boolean caseSensitive)
Checks if the given objects are equal. |
static int |
getLength(String text)
Gets the length of the given String. |
static String |
getLowerCase(String text)
Gets the lower case String from the given String. |
static String |
getUpperCase(String text)
Gets the upper case String from the given String. |
static boolean |
isEmpty(String value)
Checks if the given string is null or has zero length. |
static boolean |
like(String a,
String b)
Checks if the given objects are likewise. |
static boolean |
like(String a,
String b,
boolean caseSensitive)
Checks if the given objects are likewise. |
static String |
trim(String string)
Trims off the heading and trailing white spaces from the given string. |
static String |
trimHead(String string)
Trims off the heading white spaces from the given string. |
static String |
trimTail(String string)
Trims off the trailing white spaces from the content buffer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StringUtils()
| Method Detail |
|---|
public static final boolean isEmpty(String value)
value - The string to check.
public static final int getLength(String text)
text - The String to get the length from.
public static final String getUpperCase(String text)
text - The String to get the upper case String from.
public static final String getLowerCase(String text)
text - The String to get the lower case String from.
public static final String capitalize(String text)
text - The String to capitalize.
public static final boolean equals(String a,
String b)
a - The object to compare with object b.b - The object to compare with object a.
public static final boolean equals(String a,
String b,
boolean caseSensitive)
a - The object to compare with object b.b - The object to compare with object a.caseSensitive - Tells whether or not to compare string values case sensitive.
public static final boolean like(String a,
String b)
a - The object to compare with object b.b - The object to compare with object a.
public static final boolean like(String a,
String b,
boolean caseSensitive)
a - The object to compare with object b.b - The object to compare with object a.caseSensitive - Tells whether or not to compare string values case sensitive.
public static final String trim(String string)
string - the string to trim.
public static final String trimHead(String string)
string - the string to trim.
public static final String trimTail(String string)
string - the string to trim.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||