public final class ObjectUtil extends Object
Modifier and Type | Method and Description |
---|---|
static <T> T[] |
appendtoArray(T[] array,
T... elements) |
static Exception |
close(Object object) |
static boolean |
equals(Object o1,
Object o2) |
static int |
hashCode(int... values)
A collision-free hash code for small sets (<=4) of small, positive integers (<=128)
|
static int |
hashCode(long num) |
static int |
hashCode(Object o) |
static <T extends Collection<?>> |
isEmpty(Collection<?> collection) |
static <T extends Map<?,?>> |
isEmpty(Map<?,?> map) |
static boolean |
isEmpty(String string) |
static <T> boolean |
isEmpty(T[] array) |
static <T> T |
notNull(T object) |
public static int hashCode(Object o)
public static int hashCode(int... values)
public static int hashCode(long num)
public static <T> T[] appendtoArray(T[] array, T... elements)
public static <T> boolean isEmpty(T[] array)
public static <T extends Collection<?>> boolean isEmpty(Collection<?> collection)
public static boolean isEmpty(String string)
public static <T> T notNull(T object)
Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.