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 IOBooleanSupplierThe field for thesupplierrecord component.private final TermsEnumThe field for thetermsEnumrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivatePendingTermLookup(TermsEnum termsEnum, IOBooleanSupplier supplier) Creates an instance of aPendingTermLookuprecord 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.supplier()Returns the value of thesupplierrecord component.Returns the value of thetermsEnumrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
termsEnum
The field for thetermsEnumrecord component. -
supplier
The field for thesupplierrecord component.
-
-
Constructor Details
-
PendingTermLookup
Creates an instance of aPendingTermLookuprecord class.- Parameters:
termsEnum- the value for thetermsEnumrecord componentsupplier- the value for thesupplierrecord 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 thetermsEnumrecord component.- Returns:
- the value of the
termsEnumrecord component
-
supplier
Returns the value of thesupplierrecord component.- Returns:
- the value of the
supplierrecord component
-