Package org.infinispan.commons.api.query
Record Class EntityEntry<K,E> 
java.lang.Object
java.lang.Record
org.infinispan.commons.api.query.EntityEntry<K,E> 
- 
Constructor SummaryConstructorsConstructorDescriptionEntityEntry(K key, E value, float score, Object metadata) Creates an instance of aEntityEntryrecord class.
- 
Method SummaryModifier 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- 
EntityEntryCreates an instance of aEntityEntryrecord class.- Parameters:
- key- the value for the- keyrecord component
- value- the value for the- valuerecord component
- score- the value for the- scorerecord component
- metadata- the value for the- metadatarecord component
 
 
- 
- 
Method Details- 
toStringReturns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
- 
hashCodepublic final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
- 
equalsIndicates 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 '=='.
- 
keyReturns the value of thekeyrecord component.- Returns:
- the value of the keyrecord component
 
- 
valueReturns the value of thevaluerecord component.- Returns:
- the value of the valuerecord component
 
- 
scorepublic float score()Returns the value of thescorerecord component.- Returns:
- the value of the scorerecord component
 
- 
metadataReturns the value of themetadatarecord component.- Returns:
- the value of the metadatarecord component
 
 
-