@Immutable public final class BasicResult extends AbstractResult implements java.io.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(java.lang.Object o)
Compare this result with another for equality.
|
int |
hashCode() |
java.lang.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(java.lang.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)
.
equals
in class java.lang.Object
o
- The object to compare with.true
if the objects are equivalent.public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object