|
CSC407 OOP Example | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--plan.dom.ReverseFeaturePlanningOrder
Compares Features by in-plan desirability. More highly desirable features are < less desirable ones in order that sort can sort them so that the most desired ones come out first.
The criteria are
Field Summary | |
private static java.util.Comparator |
theInstance
|
Constructor Summary | |
private |
ReverseFeaturePlanningOrder()
Ensure only one instance. |
Method Summary | |
int |
compare(java.lang.Object o1,
java.lang.Object o2)
Compares two features to see which is least desirable to be in-plan. |
boolean |
equals(java.lang.Object o1,
java.lang.Object o2)
Compares two features for equal in-plan desirability. |
static java.util.Comparator |
get()
Returns the unique instance of this comparator |
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 |
private static java.util.Comparator theInstance
Constructor Detail |
private ReverseFeaturePlanningOrder()
Method Detail |
public static java.util.Comparator get()
public int compare(java.lang.Object o1, java.lang.Object o2)
compare
in interface java.util.Comparator
public boolean equals(java.lang.Object o1, java.lang.Object o2)
|
CSC407 OOP Example | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |