Interface IAttachmentCopyHandler<T>


public interface IAttachmentCopyHandler<T>
Custom copy handler for data attachments, to improve efficiency compared to the default serialize-deserialize-implementation.
  • Method Summary

    Modifier and Type
    Method
    Description
    copy(IAttachmentHolder holder, T attachment)
    creates a copy of the attachment.
  • Method Details

    • copy

      @Nullable T copy(IAttachmentHolder holder, T attachment)
      creates a copy of the attachment. The copy should be equal to serializing and deserializing the attachment.
      Parameters:
      holder - the holder the attachment will be part of after copying
      attachment - the attachment to copy
      Returns:
      the copy or null if it shouldn't be copied.