Package: org.codehaus.groovy.runtime

## [Java] Class RangeInfo

- 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
    Modifiers | Name | Description
    --- | --- | ---
    `int` | `from` | The starting index of the range (inclusive).
    `boolean` | `reverse` | Whether the range should be iterated in reverse order.
    `int` | `to` | The ending index of the range (inclusive).

  - ### Constructor Summary

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

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class Object` | `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### public final int from

      The starting index of the range (inclusive).

    - #### public final boolean reverse

      Whether the range should be iterated in reverse order.

    - #### public final int to

      The ending index of the range (inclusive).

  - ### Constructor Detail

    - #### 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