Modifier and Type | Field and Description |
---|---|
static Equator<Object> |
EQUATOR
An equator that uses the #equals() method of
the first object, if it is not null.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
nullEquals(Object o1,
Object o2)
Returns true iff the objects are either 'equal', or both null.
|
static boolean |
tryWait(Object object)
Same as object.wait(), but returns normally if interrupted.
|
static boolean |
tryWait(Object object,
long timeout)
Same as object.wait(milliseconds), but returns normally if interrupted.
|
public static boolean nullEquals(Object o1, Object o2)
o1.equals(object)
.@ThreadSafe public static boolean tryWait(Object object)
@ThreadSafe public static boolean tryWait(Object object, long timeout)