Package zombie.util
Class StringUtils
java.lang.Object
zombie.util.StringUtils
public class StringUtils
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
s_emptyString
static char
UTF8_BOM
-
Constructor Summary
Constructors Constructor Description StringUtils()
-
Method Summary
Modifier and Type Method Description static boolean
contains(java.lang.String[] stringArray, java.lang.String string, java.util.function.BiFunction biFunction)
static boolean
containsIgnoreCase(java.lang.String string, java.lang.String string2)
static java.lang.String
discardNullOrWhitespace(java.lang.String string)
static boolean
endsWithIgnoreCase(java.lang.String string, java.lang.String string2)
static boolean
equals(java.lang.String string, java.lang.String string2)
static boolean
equalsIgnoreCase(java.lang.String string, java.lang.String string2)
static java.lang.String
indent(java.lang.String string)
static int
indexOf(java.lang.String[] stringArray, java.lang.String string, java.util.function.BiFunction biFunction)
static boolean
isBoolean(java.lang.String string)
static boolean
isNullOrEmpty(java.lang.String string)
static boolean
isNullOrWhitespace(java.lang.String string)
static java.lang.String
leftJustify(java.lang.String string, int int1)
static java.lang.String
moduleDotType(java.lang.String string, java.lang.String string2)
static boolean
startsWithIgnoreCase(java.lang.String string, java.lang.String string2)
static java.lang.String
stripBOM(java.lang.String string)
static java.lang.String
trimPrefix(java.lang.String string, java.lang.String string2)
static java.lang.String
trimSuffix(java.lang.String string, java.lang.String string2)
static boolean
tryParseBoolean(java.lang.String string)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
s_emptyString
public static final java.lang.String s_emptyString- See Also:
- Constant Field Values
-
UTF8_BOM
public static final char UTF8_BOM- See Also:
- Constant Field Values
-
-
Constructor Details
-
StringUtils
public StringUtils()
-
-
Method Details
-
isNullOrEmpty
public static boolean isNullOrEmpty(java.lang.String string) -
isNullOrWhitespace
public static boolean isNullOrWhitespace(java.lang.String string) -
discardNullOrWhitespace
public static java.lang.String discardNullOrWhitespace(java.lang.String string) -
trimPrefix
public static java.lang.String trimPrefix(java.lang.String string, java.lang.String string2) -
trimSuffix
public static java.lang.String trimSuffix(java.lang.String string, java.lang.String string2) -
equals
public static boolean equals(java.lang.String string, java.lang.String string2) -
startsWithIgnoreCase
public static boolean startsWithIgnoreCase(java.lang.String string, java.lang.String string2) -
endsWithIgnoreCase
public static boolean endsWithIgnoreCase(java.lang.String string, java.lang.String string2) -
containsIgnoreCase
public static boolean containsIgnoreCase(java.lang.String string, java.lang.String string2) -
equalsIgnoreCase
public static boolean equalsIgnoreCase(java.lang.String string, java.lang.String string2) -
tryParseBoolean
public static boolean tryParseBoolean(java.lang.String string) -
isBoolean
public static boolean isBoolean(java.lang.String string) -
contains
public static boolean contains(java.lang.String[] stringArray, java.lang.String string, java.util.function.BiFunction biFunction) -
indexOf
public static int indexOf(java.lang.String[] stringArray, java.lang.String string, java.util.function.BiFunction biFunction) -
indent
public static java.lang.String indent(java.lang.String string) -
leftJustify
public static java.lang.String leftJustify(java.lang.String string, int int1) -
moduleDotType
public static java.lang.String moduleDotType(java.lang.String string, java.lang.String string2) -
stripBOM
public static java.lang.String stripBOM(java.lang.String string)
-