T - the type of object that can be copied or merged into this objectpublic interface MergeAndCopyStructure<T extends MergeAndCopyStructure<T>>
MergeAndCopyStructure. 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).
| Modifier and Type | Method and 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.
|
void merge(T otherMergeable)
SearchStructure
deletes no content, instead equal values are being merged recursively.otherMergeable - The object that should be merged into this objectCopyright © 2019. All rights reserved.