public class Comparing
extends java.lang.Object
equal
methods.Modifier and Type | Method and Description |
---|---|
static int |
compare(boolean o1,
boolean o2) |
static int |
compare(byte[] o1,
byte[] o2) |
static int |
compare(byte o1,
byte o2) |
static int |
compare(double o1,
double o2) |
static int |
compare(int o1,
int o2) |
static int |
compare(long o1,
long o2) |
static <T extends java.lang.Comparable<? super T>> |
compare(T o1,
T o2) |
static <T> int |
compare(T o1,
T o2,
java.util.Comparator<? super T> notNullComparator) |
static boolean |
equal(java.lang.CharSequence s1,
java.lang.CharSequence s2) |
static boolean |
equal(java.lang.CharSequence s1,
java.lang.CharSequence s2,
boolean caseSensitive) |
static boolean |
equal(java.lang.String arg1,
java.lang.String arg2) |
static boolean |
equal(java.lang.String arg1,
java.lang.String arg2,
boolean caseSensitive) |
static <T> boolean |
equal(T[] arr1,
T[] arr2)
Deprecated.
same as
Arrays.equals(Object[], Object[]) |
static <T> boolean |
equal(T arg1,
T arg2) |
static int |
hashcode(java.lang.Object obj) |
static int |
hashcode(java.lang.Object obj1,
java.lang.Object obj2) |
static <T> boolean |
haveEqualElements(java.util.Collection<? extends T> a,
java.util.Collection<? extends T> b) |
static <T> boolean |
haveEqualElements(T[] a,
T[] b) |
static boolean |
strEqual(java.lang.String arg1,
java.lang.String arg2)
|
static boolean |
strEqual(java.lang.String arg1,
java.lang.String arg2,
boolean caseSensitive)
|
static int |
unorderedHashcode(java.util.Collection<?> collection) |
public static <T> boolean equal(T arg1, T arg2)
@Deprecated public static <T> boolean equal(T[] arr1, T[] arr2)
Arrays.equals(Object[], Object[])
public static boolean equal(java.lang.CharSequence s1, java.lang.CharSequence s2)
public static boolean equal(java.lang.CharSequence s1, java.lang.CharSequence s2, boolean caseSensitive)
public static boolean equal(java.lang.String arg1, java.lang.String arg2)
public static boolean equal(java.lang.String arg1, java.lang.String arg2, boolean caseSensitive)
public static boolean strEqual(java.lang.String arg1, java.lang.String arg2)
public static boolean strEqual(java.lang.String arg1, java.lang.String arg2, boolean caseSensitive)
public static <T> boolean haveEqualElements(java.util.Collection<? extends T> a, java.util.Collection<? extends T> b)
public static <T> boolean haveEqualElements(T[] a, T[] b)
public static int hashcode(java.lang.Object obj)
public static int hashcode(java.lang.Object obj1, java.lang.Object obj2)
public static int unorderedHashcode(java.util.Collection<?> collection)
AbstractSet.hashCode()
public static int compare(byte o1, byte o2)
public static int compare(boolean o1, boolean o2)
public static int compare(int o1, int o2)
public static int compare(long o1, long o2)
public static int compare(double o1, double o2)
public static int compare(byte[] o1, byte[] o2)
public static <T extends java.lang.Comparable<? super T>> int compare(T o1, T o2)
public static <T> int compare(T o1, T o2, java.util.Comparator<? super T> notNullComparator)