|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Scored
The Scored interface should be implemented by objects
that return a double-valued score. There is a simple score
comparator, and scored objects are the natural wrappers of other
objects in priority queues.
| Field Summary | |
|---|---|
static Comparator<Scored> |
REVERSE_SCORE_COMPARATOR
A comparator that orders scored objects in reverse score order. |
static Comparator<Scored> |
SCORE_COMPARATOR
A comparator that compares scored objects by their score. |
| Method Summary | |
|---|---|
double |
score()
Returns the score for this object. |
| Field Detail |
|---|
static final Comparator<Scored> SCORE_COMPARATOR
Arrays.sort(Object[],Comparator).
static final Comparator<Scored> REVERSE_SCORE_COMPARATOR
SCORE_COMPARATOR, and like that ordering, is not consistent
with object equality. This comparator is useful for priority
queues.
| Method Detail |
|---|
double score()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||