Record Class TokenPosition
java.lang.Object
java.lang.Record
com.refinedmods.refinedstorage.query.lexer.TokenPosition
-
Constructor Summary
ConstructorsConstructorDescriptionTokenPosition(Source source, TokenRange range) Creates an instance of aTokenPositionrecord 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.range()Returns the value of therangerecord component.source()Returns the value of thesourcerecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
TokenPosition
Creates an instance of aTokenPositionrecord class.- Parameters:
source- the value for thesourcerecord componentrange- the value for therangerecord 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 withObjects::equals(Object,Object). -
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
range
Returns the value of therangerecord component.- Returns:
- the value of the
rangerecord component
-