public final class StringUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
NEWLINE
The local computer's newline character sequence.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
equalsIgnoreCase(Map<String,String> a,
Map<String,String> b)
Compares two string-based maps using case-insensitive equality, also
checking for null.
|
static boolean |
equalsIgnoreCase(String a,
String b)
Compares two strings using case-insensitive equality, also checking for
null.
|
static boolean |
equalsIgnoreCaseIgnoreOrder(List<String> a,
List<String> b)
Compares two lists of strings using case-insensitive equality and
ignoring order.
|
static int |
hashIgnoreCase(Map<String,String> map)
Generates a case-insensitive hash code of a string-based map.
|
static int |
hashIgnoreCase(Object... objects)
Calls
Objects.hash(java.lang.Object...), replacing all String objects with lowercase
versions. |
public static boolean equalsIgnoreCase(String a, String b)
a - the first string (can be null)b - the second string (can be null)public static boolean equalsIgnoreCase(Map<String,String> a, Map<String,String> b)
a - the first map (can be null)b - the second map (can be null)public static boolean equalsIgnoreCaseIgnoreOrder(List<String> a, List<String> b)
a - the first list (can be null)b - the second list (can be null)public static int hashIgnoreCase(Object... objects)
Objects.hash(java.lang.Object...), replacing all String objects with lowercase
versions.objects - the objects to hashpublic static int hashIgnoreCase(Map<String,String> map)
map - the map (can be null)Copyright © 2012–2026 Michael Angstadt. All rights reserved.