public class ObjectUtil
extends java.lang.Object
Object related operations.| Modifier and Type | Method and Description |
|---|---|
static java.lang.Object |
unpack(java.lang.Object obj)
Unpacks the given object by recursively
calling the
call() method if the
object is a Closure or Callable. |
static java.lang.String |
unpackString(java.lang.Object obj)
Unpacks the given object to its
String
value. |
public static java.lang.Object unpack(java.lang.Object obj)
call() method if the
object is a Closure or Callable.obj - the object to unpackpublic static java.lang.String unpackString(java.lang.Object obj)
String
value. Same behavior as the other unpack
method ending with a call to toString().obj - the value to unpackunpack(Object)