Schnittstelle PartialCopyable<T extends PartialCopyable<T>>


public interface PartialCopyable<T extends PartialCopyable<T>>
Contract for objects that can be copied partially, i.e. by explicitly excluding or including specified branches of the object tree.
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    copyExcept(PropertyTree propertyTree)
    Clones this instances partially, the parts to be EXCLUDED will be defined by propertyTree
    copyOnly(PropertyTree propertyTree)
    Clones this instances partially, the parts to be INCLUDED will be defined by propertyTree, all other parts will be excluded.
    createCopy(PropertyTree propertyTree, PropertyTreeUse propertyTreeUse)
    Clones this instances partially, the parts will be defined by propertyTree
  • Methodendetails

    • createCopy

      T createCopy(PropertyTree propertyTree, PropertyTreeUse propertyTreeUse)
      Clones this instances partially, the parts will be defined by propertyTree
      Parameter:
      propertyTree - Defines which parts of the object tree will be cloned or excluded
      propertyTreeUse - Defines how the clone graph will be used: To include or to exclude properties.
      Gibt zurück:
      A copy of the original object.
    • copyExcept

      T copyExcept(PropertyTree propertyTree)
      Clones this instances partially, the parts to be EXCLUDED will be defined by propertyTree
      Parameter:
      propertyTree - Defines which parts of the object tree will be excluded
      Gibt zurück:
      A copy of the original object.
    • copyOnly

      T copyOnly(PropertyTree propertyTree)
      Clones this instances partially, the parts to be INCLUDED will be defined by propertyTree, all other parts will be excluded.
      Parameter:
      propertyTree - Defines which parts of the object tree will be included in the clone
      Gibt zurück:
      A copy of the original object.