Class ObjectUtil

java.lang.Object
nebula.plugin.release.util.ObjectUtil

public final class ObjectUtil extends Object
Utility class for general Object related operations.
Since:
0.1.0
  • Method Details

    • unpack

      public static Object unpack(Object obj)
      Unpacks the given object by recursively calling the call() method if the object is a Closure or Callable.
      Parameters:
      obj - the object to unpack
      Returns:
      the unpacked value of the object
    • unpackString

      public static String unpackString(Object obj)
      Unpacks the given object to its String value. Same behavior as the other unpack method ending with a call to toString().
      Parameters:
      obj - the value to unpack
      Returns:
      the unpacked string value
      See Also: