Package org.incenp.obofoundry.idrange
Class IDRange
java.lang.Object
org.incenp.obofoundry.idrange.IDRange
Represents an ID range for automatically assigned IDs.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Gets the lower bound (inclusive) of the range.int
Gets the upper bound (exclusive) of the range,
-
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.
-