Package ghidra.util.datastruct

# Class IndexRange

java.lang.Object
ghidra.util.datastruct.IndexRange

public class IndexRange extends Object
Class for holding a begin and end index.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `IndexRange(long start, long end)`
  Constructor for IndexRange.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `equals(Object obj)`
  `long`
  `getEnd()`
  Returns the ending index of the range.
  `long`
  `getStart()`
  Returns the starting index of the range.
  `int`
  `hashCode()`

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

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

- ## Constructor Details

  - ### IndexRange

    public IndexRange(long start, long end)
    Constructor for IndexRange.
    Parameters:
      `start` - the starting index of the range.
      `end` - the ending index of the range.

- ## Method Details

  - ### getStart

    public long getStart()
    Returns the starting index of the range.
    Returns:
      the starting index of the range.

  - ### getEnd

    public long getEnd()
    Returns the ending index of the range.
    Returns:
      the ending index of the range.

  - ### equals

    public boolean equals(Object obj)
    Overrides:
      `equals` in class `Object`
    See Also:
      - `Object.equals(java.lang.Object)`

  - ### hashCode

    public int hashCode()
    Overrides:
      `hashCode` in class `Object`
    See Also:
      - `Object.hashCode()`