Package org.codehaus.groovy.runtime
Class RangeInfo
java.lang.Object
org.codehaus.groovy.runtime.RangeInfo
Holds information about a range, including its boundaries and direction.
Used internally by Groovy to represent range iteration parameters.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRangeInfo(int from, int to, boolean reverse) Constructs a RangeInfo with the specified boundaries and direction. -
Method Summary
-
Field Details
-
from
public final int fromThe starting index of the range (inclusive). -
to
public final int toThe ending index of the range (inclusive). -
reverse
public final boolean reverseWhether the range should be iterated in reverse order.
-
-
Constructor Details
-
RangeInfo
public RangeInfo(int from, int to, boolean reverse) Constructs a RangeInfo with the specified boundaries and direction.- Parameters:
from- the starting index (inclusive)to- the ending index (inclusive)reverse- whether to iterate in reverse order
-