Package org.spockframework.util
Class ObjectUtil
java.lang.Object
org.spockframework.util.ObjectUtil
Utility methods applicable to (almost) any object. Includes null-safe variants of methods on class Object.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> T
asInstance
(Object obj, Class<T> type) static <T extends Comparable<T>>
intcompare
(T c1, T c2) static boolean
eitherNull
(Object... objs) static boolean
static Class<?>
static int
static String
static Class<?>
voidAwareGetClass
(Object obj)
-
Constructor Details
-
ObjectUtil
public ObjectUtil()
-
-
Method Details
-
equals
-
hashCode
-
toString
-
getClass
-
voidAwareGetClass
-
eitherNull
-
compare
-
asInstance
-