Package io.jmix.core

Interface Copier

All Known Implementing Classes:
SerializingCopier

public interface Copier
Creates copies of objects.

This interface provides the copy(Object) method similar by semantics to MetadataTools.deepCopy(Object) but different in that it doesn't rely on metadata and copies all object's state using a low-level mechanism like Java serialization.

  • Method Summary

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

    • copy

      <T> T copy(T source)
      Creates a deep copy of the passed object.
      Parameters:
      source - source object
      Returns:
      deep copy of the source object