public interface IRefactoringStatusEntryComparator
Comparator
from the Java Collection Framework.
This interface is intended to be implemented by clients.
Modifier and Type | Method and Description |
---|---|
int |
compare(RefactoringStatusEntry entry1,
RefactoringStatusEntry entry2)
Compares two refactoring status entries for order.
|
int compare(RefactoringStatusEntry entry1, RefactoringStatusEntry entry2)
The implementor must ensure that sgn(compare(x, y)) == -sgn(compare(y, x)) for all x and y.
The implementor must ensure that the relation is transitive: ((compare(x, y)>0) && (compare(y, z)>0)) implies compare(x, z)>0.
Furthermore, the implementer must ensure that compare(x, y)==0 implies that sgn(compare(x, z))==sgn(compare(y, z)) for all z.
entry1
- the first refactoring status entry to be compared.entry2
- the second refactoring status entry to be compared.
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.