Interface MergeAndCopyStructure<T extends MergeAndCopyStructure<T>>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      T copy()
      This method copies the object which calls it.
      void merge​(T otherMergeable)
      Merging adds the contents of the otherMergable to this object.
    • Method Detail

      • merge

        void merge​(T otherMergeable)
        Merging adds the contents of the otherMergable to this object. This object then contains the combined content. The other object remains unchanged.Merging a SearchStructure deletes no content, instead equal values are being merged recursively.
        Parameters:
        otherMergeable - The object that should be merged into this object
      • copy

        T copy()
        This method copies the object which calls it. The newly created object has the same properties like the object calling copy().
        Returns:
        T that is a copy of the calling object