public class ObjectsUtils
extends java.lang.Object
| Constructor and Description |
|---|
ObjectsUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
close(java.io.Closeable closeable)
Closes stream if possible.
|
static boolean |
equals(java.lang.Object object1,
java.lang.Object object2) |
static int |
hash(java.lang.Object... objects) |
static <T> T |
requireNonNull(T object,
java.lang.String errorMessage)
Checks that the specified object reference is not null.
|
public static boolean equals(java.lang.Object object1,
java.lang.Object object2)
public static int hash(java.lang.Object... objects)
public static <T> T requireNonNull(T object,
java.lang.String errorMessage)
T - the type of the referenceobject - the object reference to check for nullityerrorMessage - detail message to be used in the event that a NullPointerException is
thrownpublic static void close(java.io.Closeable closeable)
closeable - the closable implementation to close