@Immutable public final class BasicResult extends AbstractResult implements Serializable
A basic Result
implementation with no details.
Results
,
Serialized Formid, score
Constructor and Description |
---|
BasicResult(long id,
double score)
Create a new basic result.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Compare this result with another for equality.
|
int |
hashCode() |
String |
toString() |
as, getId, getKey, getScore, hasScore, startEquality, startEquality, startHashCode, startHashCode
public BasicResult(long id, double score)
Create a new basic result.
id
- The result ID.score
- The result score.Results.create(long, double)
public boolean equals(Object o)
Compare this result with another for equality. Instance of this result type are only equal with other basic result instances; to compare general results for equality, first convert them to basic results with Results.basicCopy(Result)
.