E - element typepublic static interface StrictPriorityQueue.MergeOperation<E>
| Modifier and Type | Method and Description |
|---|---|
E |
merge(E oldObject,
E newObject)
Merges the old element and the new element into a replacement element.
|
E merge(E oldObject, E newObject)
Implementations can assume that cmp.compare(oldObject, newObject) == 0 holds for the comparator
cmp specified in StrictPriorityQueue.StrictPriorityQueue(Comparator, MergeOperation). In
turn, they must guarantee that also cmp.compare(result, oldObject) == 0 holds for the return value
result.
oldObject - the old elementnewObject - the new elementCopyright © 2018. All rights reserved.