Interface Copier<T>

All Known Implementing Classes:
DeepCopier, EntityCopier

public interface Copier<T>
  • Method Summary

    Modifier and Type
    Method
    Description
    copy(Object src)
    Copy an Object
    If a field has the annotation , it will not be copied.
    copy(Object src, boolean copyIgnoredFields)
    Copy an Object
    If a field has the annotation , it will be copied only if copyIgnoredField = true.
  • Method Details

    • copy

      T copy(Object src, boolean copyIgnoredFields)
      Copy an Object
      If a field has the annotation , it will be copied only if copyIgnoredField = true.
      Parameters:
      src - object that will be copied.
      Returns:
      the copied object.
    • copy

      T copy(Object src)
      Copy an Object
      If a field has the annotation , it will not be copied.
      Parameters:
      src - object that will be copied.
      Returns:
      the copied object.