Class IDRange

java.lang.Object
org.incenp.obofoundry.idrange.IDRange

public class IDRange extends Object
Represents an ID range for automatically assigned IDs.
  • Constructor Details

    • IDRange

      public IDRange(int lower, int upper)
      Creates a new instance.
      Parameters:
      lower - The lower bound (inclusive) of the range.
      upper - The upper bound (exclusive) of the range.
  • Method Details

    • getLowerBound

      public int getLowerBound()
      Gets the lower bound (inclusive) of the range.
      Returns:
      The range's lower bound.
    • getUpperBound

      public int getUpperBound()
      Gets the upper bound (exclusive) of the range,
      Returns:
      The range's upper bound.