Package nebula.plugin.release.util
Class ObjectUtil
java.lang.Object
nebula.plugin.release.util.ObjectUtil
Utility class for general
Object related operations.- Since:
- 0.1.0
-
Method Summary
-
Method Details
-
unpack
Unpacks the given object by recursively calling thecall()method if the object is aClosureorCallable.- Parameters:
obj- the object to unpack- Returns:
- the unpacked value of the object
-
unpackString
Unpacks the given object to itsStringvalue. Same behavior as the otherunpackmethod ending with a call totoString().- Parameters:
obj- the value to unpack- Returns:
- the unpacked string value
- See Also:
-