public final class NumberRange
extends java.lang.Object
NumberRange is just a wrapper for a starting and ending number so that we can return two numbers from a calculation. For example, this may represent a start/end offset or start/end line.| Modifier and Type | Field and Description |
|---|---|
int |
end
The ending number of the range.
|
int |
start
The starting number of the range.
|
| Constructor and Description |
|---|
NumberRange(int start, int end)
Constructs a new NumberRange.
|
NumberRange(NumberRange range)
Copies an existing instance.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
toString()
Fetches a human-readable version of this object.
|
public int start
public int end
public NumberRange(NumberRange range)
range - the existing instance
public NumberRange(int start,
int end)
start - starting numberend - ending number