|
|||||||||
| 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
Deprecated. Use the static factory method ScoredObject.reverseComparator() instead. |
static Comparator<Scored> |
SCORE_COMPARATOR
Deprecated. Use the static factory method ScoredObject.comparator() instead. |
| Method Summary | |
|---|---|
double |
score()
Returns the score for this object. |
| Field Detail |
|---|
@Deprecated static final Comparator<Scored> SCORE_COMPARATOR
ScoredObject.comparator() instead.Arrays.sort(Object[],Comparator).
@Deprecated static final Comparator<Scored> REVERSE_SCORE_COMPARATOR
ScoredObject.reverseComparator() instead.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 | ||||||||