public class ScoredObject<T> extends Object implements Comparable<ScoredObject>
Constructor and Description |
---|
ScoredObject(T object,
double score)
Constructs a new
ScoredObject . |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ScoredObject other) |
boolean |
equals(Object other) |
T |
getObject()
Returns the decorated object.
|
double |
getScore()
Returns the score.
|
int |
hashCode() |
public ScoredObject(@Nullable T object, double score)
ScoredObject
.public T getObject()
public double getScore()
public int compareTo(ScoredObject other)
compareTo
in interface Comparable<ScoredObject>
Copyright © 2017. All rights reserved.