public class StringUtils
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
private |
StringUtils()
Prevents this utility class from being created from outside.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
endsWith(java.lang.CharSequence cs,
java.lang.String postfix)
Returns whether
cs ends with postfix. |
static boolean |
same(java.lang.CharSequence cs,
java.lang.String text)
Returns whether
cs equals text. |
private StringUtils()
public static boolean endsWith(java.lang.CharSequence cs,
java.lang.String postfix)
cs ends with postfix.cs - the string sequence to check for postfixpostfix - the postfix to test fortrue if sb ends with
postfix, false elsepublic static boolean same(java.lang.CharSequence cs,
java.lang.String text)
cs equals text.cs - the string sequence to check for texttext - the text to check fortrue if sb equals
postfix, false else