Record Class EntityEntry<K,E>
java.lang.Object
java.lang.Record
org.infinispan.commons.api.query.EntityEntry<K,E>
-
Constructor Summary
ConstructorsConstructorDescriptionEntityEntry(K key, E value, float score, Object metadata) Creates an instance of aEntityEntryrecord class. -
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.metadata()Returns the value of themetadatarecord component.floatscore()Returns the value of thescorerecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
EntityEntry
Creates an instance of aEntityEntryrecord class.- Parameters:
key- the value for thekeyrecord componentvalue- the value for thevaluerecord componentscore- the value for thescorerecord componentmetadata- the value for themetadatarecord component
-
-
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
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
score
public float score()Returns the value of thescorerecord component.- Returns:
- the value of the
scorerecord component
-
metadata
Returns the value of themetadatarecord component.- Returns:
- the value of the
metadatarecord component
-