All Known Implementing Classes:
FuryCloner

public interface Cloner
A functional interface for performing deep cloning of objects.

Implementations of this interface are expected to provide a mechanism for creating deep copies of the given object, effectively replicating the object and its internal state.

  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    deepClone(T source)
    Creates a deep copy of the provided object.
  • Method Details

    • deepClone

      @Nullable <T> T deepClone(@Nullable T source)
      Creates a deep copy of the provided object. This method performs a deep clone operation, replicating the object along with its internal state.
      Type Parameters:
      T - the type of the object to be cloned
      Parameters:
      source - the object to be cloned; can be null, in which case the method will return null
      Returns:
      a deep copy of the provided object, or null if the source object is null