public class Lib extends Object
Modifier and Type | Method and Description |
---|---|
static long |
adler32(byte[] bytes)
Faster than CRC32, nearly as good.
|
static String |
className(Object obj) |
static String |
classShortName(Class<?> cls) |
static long |
crc32(byte[] bytes) |
static <T> boolean |
equal(T obj1,
T obj2)
Return true if obj1 and obj are both null or are .equals, else return false
|
static <T> boolean |
equalsListAsSet(List<T> list1,
List<T> list2)
Do two lists have the same elements?
|
static int |
hashCodeObject(Object obj)
HashCode - allow nulls
|
static int |
hashCodeObject(Object obj,
int nullHashCode)
HashCode - allow nulls
|
static <T> boolean |
notEqual(T obj1,
T obj2)
Return true if obj1 and obj are ! equal
|
static void |
sleep(int milliSeconds) |
static void |
sync(Object object) |
public static final void sync(Object object)
public static final <T> boolean equal(T obj1, T obj2)
public static final <T> boolean notEqual(T obj1, T obj2)
public static <T> boolean equalsListAsSet(List<T> list1, List<T> list2)
public static final int hashCodeObject(Object obj)
public static final int hashCodeObject(Object obj, int nullHashCode)
public static final void sleep(int milliSeconds)
public static long crc32(byte[] bytes)
CRC32
public static long adler32(byte[] bytes)
Adler32
Licenced under the Apache License, Version 2.0