|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.emf.emfstore.common.extensionpoint.ESPriorityComparator
public final class ESPriorityComparator
A comparator for ESExtensionElement. This allows to sort the elements in the ESExtensionPoint in
order to represent priority of registered elements.
This comparator by default uses a field priority, which is expected to hold an priority number and then sort
by by this number.
| Constructor Summary | |
|---|---|
ESPriorityComparator()
Default constructor. |
|
ESPriorityComparator(boolean descending)
Constructor which allows to config the ordering. |
|
ESPriorityComparator(String fieldname,
boolean descending)
Constructor allows to config fieldname and ordering. |
|
| Method Summary | |
|---|---|
int |
compare(ESExtensionElement element1,
ESExtensionElement element2)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
|---|
equals |
| Constructor Detail |
|---|
public ESPriorityComparator()
public ESPriorityComparator(boolean descending)
descending - if true, priorities are sorted in descending order, ascending otherwise
public ESPriorityComparator(String fieldname,
boolean descending)
fieldname - the attribute id of the priority fielddescending - if true, priorities are sorted in descending order, ascending otherwise| Method Detail |
|---|
public int compare(ESExtensionElement element1,
ESExtensionElement element2)
compare in interface Comparator<ESExtensionElement>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||