Record Class ScoredKey
java.lang.Object
java.lang.Record
org.impulsegraph.api.traversal.ScoredKey
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.intquorum()Returns the value of thequorumrecord component.floatscore()Returns the value of thescorerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ScoredKey
Creates an instance of aScoredKeyrecord class.- Parameters:
key- the value for thekeyrecord componentscore- the value for thescorerecord componentquorum- the value for thequorumrecord component
-
ScoredKey
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
score
public float score()Returns the value of thescorerecord component.- Returns:
- the value of the
scorerecord component
-
quorum
public int quorum()Returns the value of thequorumrecord component.- Returns:
- the value of the
quorumrecord component
-