Module org.apache.lucene.core
Record Class TermOrdValComparator.PostingsEnumAndOrd
java.lang.Object
java.lang.Record
org.apache.lucene.search.comparators.TermOrdValComparator.PostingsEnumAndOrd
- Enclosing class:
TermOrdValComparator
private static record TermOrdValComparator.PostingsEnumAndOrd(PostingsEnum postings, int ord)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for theordrecord component.private final PostingsEnumThe field for thepostingsrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivatePostingsEnumAndOrd(PostingsEnum postings, int ord) Creates an instance of aPostingsEnumAndOrdrecord 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.intord()Returns the value of theordrecord component.postings()Returns the value of thepostingsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
postings
The field for thepostingsrecord component. -
ord
private final int ordThe field for theordrecord component.
-
-
Constructor Details
-
PostingsEnumAndOrd
Creates an instance of aPostingsEnumAndOrdrecord class.- Parameters:
postings- the value for thepostingsrecord componentord- the value for theordrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
postings
Returns the value of thepostingsrecord component.- Returns:
- the value of the
postingsrecord component
-
ord
public int ord()Returns the value of theordrecord component.- Returns:
- the value of the
ordrecord component
-