|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface defines the three key methods required for an object to be Prioritizeable.
Method Summary | |
boolean |
adjustPriority(java.lang.Comparable obj)
A prioritizable object can have its priority raised or lowered. |
boolean |
higherThan(Prioritizeable obj)
Compares the priority of this Prioritizeable object with the priority of the specified Prioritizeable object. |
boolean |
lowerThan(Prioritizeable obj)
Compares the priority of this Prioritizeable object with the priority of the specified Prioritizeable object. |
Methods inherited from interface java.lang.Comparable |
compareTo |
Method Detail |
public boolean higherThan(Prioritizeable obj)
obj
- the specified Prioritizeable object. If the objects are not
comparable, then the method may throw a ClassCastException.
public boolean lowerThan(Prioritizeable obj)
obj
- the specified Prioritizeable object. If the objects are not
comparable, then the method may throw a ClassCastException.
public boolean adjustPriority(java.lang.Comparable obj)
obj
- a Comparable object appropriate for specifying the
priority.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |