Record Class CsvIndex.CsvPage
java.lang.Object
java.lang.Record
de.siegmar.fastcsv.reader.CsvIndex.CsvPage
- Record Components:
offset- The offset of the page in the CSV file.startingLineNumber- The starting line number of the page.
- All Implemented Interfaces:
Serializable
- Enclosing class:
CsvIndex
public static record CsvIndex.CsvPage(long offset, long startingLineNumber)
extends Record
implements Serializable
Represents a page of the CSV file.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCsvPage(long offset, long startingLineNumber) Creates an instance of aCsvPagerecord 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.longoffset()Returns the value of theoffsetrecord component.longReturns the value of thestartingLineNumberrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CsvPage
public CsvPage(long offset, long startingLineNumber) Creates an instance of aCsvPagerecord class.- Parameters:
offset- the value for theoffsetrecord componentstartingLineNumber- the value for thestartingLineNumberrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
offset
-
startingLineNumber
public long startingLineNumber()Returns the value of thestartingLineNumberrecord component.- Returns:
- the value of the
startingLineNumberrecord component
-