Package org.exbin.xbup.core.util
Class StringUtils
- java.lang.Object
-
- org.exbin.xbup.core.util.StringUtils
-
@ParametersAreNonnullByDefault public final class StringUtils extends java.lang.Object
Utilities for stream data manipulations.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ENCODING_UTF8
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
stringsEquals(java.lang.String string, java.lang.String matchString)
Compares two strings including nulls.static boolean
stringsEqualsIgnoreCase(java.lang.String string, java.lang.String matchString)
Compares two strings ignoring case including nulls.
-
-
-
Field Detail
-
ENCODING_UTF8
public static final java.lang.String ENCODING_UTF8
- See Also:
- Constant Field Values
-
-
Method Detail
-
stringsEquals
public static boolean stringsEquals(@Nullable java.lang.String string, @Nullable java.lang.String matchString)
Compares two strings including nulls.- Parameters:
string
- first stringmatchString
- second string- Returns:
- true if both null or equals
-
stringsEqualsIgnoreCase
public static boolean stringsEqualsIgnoreCase(@Nullable java.lang.String string, @Nullable java.lang.String matchString)
Compares two strings ignoring case including nulls.- Parameters:
string
- first stringmatchString
- second string- Returns:
- true if both null or equals ignoring case sensitivity
-
-