public class CompareUtils
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
CompareUtils.NullSafeComparator<T> |
Modifier and Type | Field and Description |
---|---|
static java.util.Comparator |
EQUALS_IGNORECASE_COMPARATOR |
Constructor and Description |
---|
CompareUtils() |
Modifier and Type | Method and Description |
---|---|
static int |
compare(java.lang.Comparable c1,
java.lang.Comparable c2) |
static int |
compare(java.lang.Comparable c1,
java.lang.Comparable c2,
boolean nullIsLess) |
static int |
compare(java.util.Comparator comparator,
java.lang.Object c1,
java.lang.Object c2) |
static int |
compare(java.util.Comparator comparator,
java.lang.Object c1,
java.lang.Object c2,
boolean nullIsLess) |
static int |
compare(java.lang.String str1,
java.lang.String str2) |
static int |
compare(java.lang.String str1,
java.lang.String str2,
boolean nullIsLess) |
static boolean |
equals(java.lang.String str1,
java.lang.String str2) |
static boolean |
match(java.lang.Object value,
java.lang.String matcher) |
static boolean |
match(java.lang.String value,
java.lang.String matcher) |
static boolean |
matchAccentsSensitive(java.lang.String value,
java.lang.String matcher) |
static boolean |
matchCaseAndAccentsSensitive(java.lang.String value,
java.lang.String matcher) |
static boolean |
matchCaseSensitive(java.lang.String value,
java.lang.String matcher) |
public static final java.util.Comparator EQUALS_IGNORECASE_COMPARATOR
public static boolean equals(java.lang.String str1, java.lang.String str2)
public static int compare(java.lang.Comparable c1, java.lang.Comparable c2)
public static int compare(java.util.Comparator comparator, java.lang.Object c1, java.lang.Object c2)
public static int compare(java.util.Comparator comparator, java.lang.Object c1, java.lang.Object c2, boolean nullIsLess)
public static int compare(java.lang.Comparable c1, java.lang.Comparable c2, boolean nullIsLess)
public static int compare(java.lang.String str1, java.lang.String str2)
public static int compare(java.lang.String str1, java.lang.String str2, boolean nullIsLess)
public static boolean match(java.lang.Object value, java.lang.String matcher)
public static boolean match(java.lang.String value, java.lang.String matcher)
public static boolean matchCaseSensitive(java.lang.String value, java.lang.String matcher)
public static boolean matchAccentsSensitive(java.lang.String value, java.lang.String matcher)
public static boolean matchCaseAndAccentsSensitive(java.lang.String value, java.lang.String matcher)