Package org.aksw.iguana.cc.utils.files
Record Class QueryIndex
java.lang.Object
java.lang.Record
org.aksw.iguana.cc.utils.files.QueryIndex
-
Constructor Summary
ConstructorsConstructorDescriptionQueryIndex(long filePosition, long queryLength) Creates an instance of aQueryIndexrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.longReturns the value of thefilePositionrecord component.final inthashCode()Returns a hash code value for this object.longReturns the value of thequeryLengthrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
QueryIndex
public QueryIndex(long filePosition, long queryLength) Creates an instance of aQueryIndexrecord class.- Parameters:
filePosition- the value for thefilePositionrecord componentqueryLength- the value for thequeryLengthrecord 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 with '=='. -
filePosition
public long filePosition()Returns the value of thefilePositionrecord component.- Returns:
- the value of the
filePositionrecord component
-
queryLength
public long queryLength()Returns the value of thequeryLengthrecord component.- Returns:
- the value of the
queryLengthrecord component
-