|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object blackboard.platform.plugin.PlugInComparator
public class PlugInComparator
Comparator implementation to sort lists of PlugIns. The mode property is used to select the PlugIn attribute to use for the sort.
Field Summary | |
---|---|
static int |
MODE_AVAILABILITY
PlugIns are compared based on the isAvailable attribute |
static int |
MODE_NAME
PlugIn objects are compared based on the name attribute |
static int |
MODE_VENDOR
PlugIns are compared on the vendorName attribute |
static int |
MODE_VERSION
PlugIns are compared on the Version attribute |
static int |
MODE_WEBAPP_TYPE
PlugIns are compared on the webAppType attribute |
Constructor Summary | |
---|---|
PlugInComparator(int mode)
Instantiates a comparator with the specified mode. |
Method Summary | |
---|---|
int |
compare(java.lang.Object o1,
java.lang.Object o2)
Compares its two arguments for order. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
---|
equals |
Field Detail |
---|
public static final int MODE_NAME
public static final int MODE_AVAILABILITY
public static final int MODE_VERSION
public static final int MODE_VENDOR
public static final int MODE_WEBAPP_TYPE
Constructor Detail |
---|
public PlugInComparator(int mode)
mode
- Comparison mode. Should match to one of the MODE_* constants defined on this classMethod Detail |
---|
public int compare(java.lang.Object o1, java.lang.Object o2)
Behavior depends on the mode
compare
in interface java.util.Comparator
o1
- the first object to be compared.o2
- the second object to be compared.
java.lang.ClassCastException
- if the arguments' types prevent them from
being compared by this Comparator.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |