| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | |
| public Object | |
| public boolean | overlaps(Interval arg, Comparator<Object> endpointComparator)
This takes the Interval to compare against as well as a Comparator which will be applied to the low and high endpoints of the given intervals. |
| public boolean | overlaps(Object otherLowEndpoint, Object otherHighEndpoint, Comparator<Object> endpointComparator)
Routine which can be used instead of the one taking an interval, for the situation where the endpoints are being retrieved from different data structures |
| public String |
| highEndpoint | back to summary |
|---|---|
| private Object highEndpoint | |
| lowEndpoint | back to summary |
|---|---|
| private Object lowEndpoint | |
| Interval | back to summary |
|---|---|
| public Interval(Object lowEndpoint, Object highEndpoint) It is required that the low endpoint be less than or equal to the high endpoint according to the Comparator which will be passed into the overlaps() routines. | |
| getHighEndpoint | back to summary |
|---|---|
| public Object getHighEndpoint() | |
| getLowEndpoint | back to summary |
|---|---|
| public Object getLowEndpoint() | |
| overlaps | back to summary |
|---|---|
| public boolean overlaps(Interval arg, Comparator<Object> endpointComparator) This takes the Interval to compare against as well as a Comparator which will be applied to the low and high endpoints of the given intervals. | |
| overlaps | back to summary |
|---|---|
| public boolean overlaps(Object otherLowEndpoint, Object otherHighEndpoint, Comparator<Object> endpointComparator) Routine which can be used instead of the one taking an interval, for the situation where the endpoints are being retrieved from different data structures | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |