Package ghidra.app.util.bin.format.dwarf4

# Class DWARFRange

java.lang.Object
ghidra.app.util.bin.format.dwarf4.DWARFRange

All Implemented Interfaces:
  `Comparable<DWARFRange>`

public class DWARFRange extends Object implements Comparable<DWARFRange>
Holds the start (inclusive) and end (exclusive) addresses of a range.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final DWARFRange`
  `EMPTY`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `DWARFRange(long start, long end)`
  Constructs a new `DWARFRange` using start and end values.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `compareTo(DWARFRange other)`
  `long`
  `getFrom()`
  Returns starting address.
  `long`
  `getTo()`
  Returns ending address, exclusive.
  `String`
  `toString()`

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

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

- ## Field Details

  - ### EMPTY

    public static final DWARFRange EMPTY

- ## Constructor Details

  - ### DWARFRange

    public DWARFRange(long start, long end)
    Constructs a new `DWARFRange` using start and end values.
    Parameters:
      `start` - long starting address, inclusive
      `end` - long ending address, exclusive

- ## Method Details

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`

  - ### compareTo

    public int compareTo(DWARFRange other)
    Specified by:
      `compareTo` in interface `Comparable<DWARFRange>`

  - ### getFrom

    public long getFrom()
    Returns starting address.
    Returns:
      long starting address

  - ### getTo

    public long getTo()
    Returns ending address, exclusive.
    Returns:
      long ending address, exclusive.