Package org.codehaus.groovy.runtime

# Class RangeInfo

java.lang.Object
org.codehaus.groovy.runtime.RangeInfo

public class RangeInfo extends Object
Holds information about a range, including its boundaries and direction. Used internally by Groovy to represent range iteration parameters.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `final int`
  `from`
  The starting index of the range (inclusive).
  `final boolean`
  `reverse`
  Whether the range should be iterated in reverse order.
  `final int`
  `to`
  The ending index of the range (inclusive).

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `RangeInfo(int from, int to, boolean reverse)`
  Constructs a RangeInfo with the specified boundaries and direction.

- ## Method Summary

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### from

    public final int from
    The starting index of the range (inclusive).

  - ### to

    public final int to
    The ending index of the range (inclusive).

  - ### reverse

    public final boolean reverse
    Whether 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