Modifier and Type | Field and Description |
---|---|
static Range |
EndMarker |
int |
from
The start of the range, inclusive.
|
Range |
next
A link to allow the range to be put into a singly linked list.
|
int |
to
The end of the range, exclusive.
|
Constructor and Description |
---|
Range(int from,
int to,
Range next)
Creates a new range.
|
Modifier and Type | Method and Description |
---|---|
(package private) boolean |
intersects(Range r) |
(package private) int |
intersectsAt(Range other) |
String |
toString() |
public int from
public int to
boolean intersects(Range r)
int intersectsAt(Range other)