public final class Objects
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static int |
compare(java.lang.Comparable a,
java.lang.Comparable b) |
static <T extends java.lang.Comparable<T>> |
compare(java.util.List<T> a,
java.util.List<T> b) |
static boolean |
equal(java.lang.Object a,
java.lang.Object b) |
static int |
hashCode(java.lang.Object... objects)
A helper class to create nice hash codes using a similar algorithm to Josh Bloch's
Effective Java book
|
static void |
notNull(java.lang.Object value,
java.lang.String name)
Asserts whether the value is not null
|
public static int hashCode(java.lang.Object... objects)
public static boolean equal(java.lang.Object a,
java.lang.Object b)
public static int compare(java.lang.Comparable a,
java.lang.Comparable b)
public static <T extends java.lang.Comparable<T>> int compare(java.util.List<T> a,
java.util.List<T> b)
public static void notNull(java.lang.Object value,
java.lang.String name)
value - the value to testname - the key that resolved the valuejava.lang.IllegalArgumentException - is thrown if assertion failsCopyright © 2014 Red Hat. All Rights Reserved.