Package: org.apache.groovy.groovysh.jline

## [Java] Interface GroovyEngine.Cloner

-     public interface GroovyEngine.Cloner

  Strategy used to clone session values for completion and inspection workflows.

- - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `public Object` | `clone(Object obj)` Creates a copy of the given object.
    `` | `public void` | `markCache()` Marks the current state of the cache.
    `` | `public void` | `purgeCache()` Purges cache entries created since the last mark.

- - ### Method Detail

    - #### public Object clone(Object obj)

      Creates a copy of the given object.

      Parameters:
        `obj` - the object to clone
      Returns:
        a copy of the object

    - #### public void markCache()

      Marks the current state of the cache.

    - #### public void purgeCache()

      Purges cache entries created since the last mark.