public class ObjectUtil
extends java.lang.Object
Constructor and Description |
---|
ObjectUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
equals(java.lang.Object object,
java.lang.Object... objects)
Tests whether an object equals any of the others.
|
static boolean |
instanceOf(java.lang.Object object,
java.lang.Class<?>... classes)
Tests whether an object is an instance of any of the given classes.
|
public static boolean equals(java.lang.Object object, java.lang.Object... objects)
object
- the objectobjects
- the other objectstrue
if the object equals any of the otherspublic static boolean instanceOf(java.lang.Object object, java.lang.Class<?>... classes)
object
- the object to testclasses
- the classes to testtrue
if the object is an instance of at least one of the given classes