Utility class for general Object
related operations.
Type | Name 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. |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(), java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Unpacks the given object by recursively
calling the call()
method if the
object is a Closure
or Callable
.
obj
- the object to unpack Unpacks the given object to its String
value. Same behavior as the other unpack
method ending with a call to toString()
.
obj
- the value to unpack