Package io.github.kirstenali.deepj.data
Record Class TextFileRange
java.lang.Object
java.lang.Record
io.github.kirstenali.deepj.data.TextFileRange
-
Constructor Summary
ConstructorsConstructorDescriptionTextFileRange(long startInclusive, long endExclusive) Creates an instance of aTextFileRangerecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of theendExclusiverecord component.static TextFileRangefinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longlength()longReturns the value of thestartInclusiverecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TextFileRange
public TextFileRange(long startInclusive, long endExclusive) Creates an instance of aTextFileRangerecord class.- Parameters:
startInclusive- the value for thestartInclusiverecord componentendExclusive- the value for theendExclusiverecord component
-
-
Method Details
-
entire
- Throws:
IOException
-
length
public long length() -
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 '=='. -
startInclusive
public long startInclusive()Returns the value of thestartInclusiverecord component.- Returns:
- the value of the
startInclusiverecord component
-
endExclusive
public long endExclusive()Returns the value of theendExclusiverecord component.- Returns:
- the value of the
endExclusiverecord component
-