Interface MergeAndCopyStructure<T extends MergeAndCopyStructure<T>>
-
- Type Parameters:
T- the type of object that can be copied or merged into this object
- All Known Implementing Classes:
KeyStructure,RangeStructure,ResultStructure,TwoColumnRangeStructure,UniqueResultStructure
public interface MergeAndCopyStructure<T extends MergeAndCopyStructure<T>>Defines the ability to merge or copy other objects into thisMergeAndCopyStructure. Used for data structures.An example of the use of this interface are the subclasses of
SearchStructure. They are defined to be mergeable with objects of the same class (or at least similar classes).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Tcopy()This method copies the object which calls it.voidmerge(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 aSearchStructuredeletes no content, instead equal values are being merged recursively.- Parameters:
otherMergeable- The object that should be merged into this object
-
-