Record Class SectionedBuffers.BufferLocation
java.lang.Object
java.lang.Record
org.ek9lang.cli.SectionedBuffers.BufferLocation
- Record Components:
section- The section where the match was foundindexInList- The index within the section's listglobalLine- The global line number
- Enclosing class:
SectionedBuffers
public static record SectionedBuffers.BufferLocation(SectionedBuffers.Section section, int indexInList, int globalLine)
extends Record
Result of a buffer operation that found a match.
-
Constructor Summary
ConstructorsConstructorDescriptionBufferLocation(SectionedBuffers.Section section, int indexInList, int globalLine) Creates an instance of aBufferLocationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intReturns the value of theglobalLinerecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of theindexInListrecord component.section()Returns the value of thesectionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BufferLocation
Creates an instance of aBufferLocationrecord class.- Parameters:
section- the value for thesectionrecord componentindexInList- the value for theindexInListrecord componentglobalLine- the value for theglobalLinerecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
section
-
indexInList
public int indexInList()Returns the value of theindexInListrecord component.- Returns:
- the value of the
indexInListrecord component
-
globalLine
public int globalLine()Returns the value of theglobalLinerecord component.- Returns:
- the value of the
globalLinerecord component
-