Record Class RuntimeIndex.FromEnd
java.lang.Object
java.lang.Record
io.github.protasm.jvmud.compiler.runtime.RuntimeIndex.FromEnd
- Enclosing class:
RuntimeIndex
Runtime marker for an LPC from-end index bound such as
<1.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintdistance()Returns the value of thedistancerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FromEnd
public FromEnd(int distance) Creates an instance of aFromEndrecord class.- Parameters:
distance- the value for thedistancerecord 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. -
distance
public int distance()Returns the value of thedistancerecord component.- Returns:
- the value of the
distancerecord component
-