Module org.apache.lucene.core
Package org.apache.lucene.index
Record Class TermStates.PendingTermLookup
java.lang.Object
java.lang.Record
org.apache.lucene.index.TermStates.PendingTermLookup
- Enclosing class:
TermStates
private static record TermStates.PendingTermLookup(TermsEnum termsEnum, IOBooleanSupplier supplier)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IOBooleanSupplier
The field for thesupplier
record component.private final TermsEnum
The field for thetermsEnum
record component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
PendingTermLookup
(TermsEnum termsEnum, IOBooleanSupplier supplier) Creates an instance of aPendingTermLookup
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.supplier()
Returns the value of thesupplier
record component.Returns the value of thetermsEnum
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
termsEnum
The field for thetermsEnum
record component. -
supplier
The field for thesupplier
record component.
-
-
Constructor Details
-
PendingTermLookup
Creates an instance of aPendingTermLookup
record class.- Parameters:
termsEnum
- the value for thetermsEnum
record componentsupplier
- the value for thesupplier
record component
-
-
Method Details
-
toString
Returns 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. -
hashCode
public 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. -
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
termsEnum
Returns the value of thetermsEnum
record component.- Returns:
- the value of the
termsEnum
record component
-
supplier
Returns the value of thesupplier
record component.- Returns:
- the value of the
supplier
record component
-