|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - the type of object that can be copied or merged into this objectpublic interface MergeAndCopyStructure<T extends MergeAndCopyStructure<T>>
Defines the ability to merge or copy other objects into this 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).
| Method Summary | |
|---|---|
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 |
|---|
void merge(T otherMergeable)
SearchStructure
deletes no content, instead equal values are being merged recursively.
otherMergeable - The object that should be merged into this objectT copy()
copy().
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||