Class ObjectUtil

java.lang.Object
org.apache.groovy.runtime.ObjectUtil

public class ObjectUtil extends Object
Util for object's operations with checks
Since:
4.0.5
  • Method Details

    • cloneObject

      public static <T> T cloneObject(T object) throws Throwable
      Clone the specified object
      Type Parameters:
      T - the object type
      Parameters:
      object - the object to clone
      Returns:
      the cloned object
      Throws:
      Throwable - some exception or error
      Since:
      4.0.5
    • getCloneObjectMethodHandle

      public static MethodHandle getCloneObjectMethodHandle()
      Returns the method handle of cloneObject(Object)
      Returns:
      the method handle
      Since:
      4.0.5