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
ConstructorDescriptionQueryIndex
(long filePosition, long queryLength) Creates an instance of aQueryIndex
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.long
Returns the value of thefilePosition
record component.final int
hashCode()
Returns a hash code value for this object.long
Returns the value of thequeryLength
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
QueryIndex
public QueryIndex(long filePosition, long queryLength) Creates an instance of aQueryIndex
record class.- Parameters:
filePosition
- the value for thefilePosition
record componentqueryLength
- the value for thequeryLength
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 with '=='. -
filePosition
public long filePosition()Returns the value of thefilePosition
record component.- Returns:
- the value of the
filePosition
record component
-
queryLength
public long queryLength()Returns the value of thequeryLength
record component.- Returns:
- the value of the
queryLength
record component
-