Inheritance diagram for Interval:
Collaboration diagram for Interval:The Interval class maintains an interval with some associated data
| <Type> | The type of data being stored |
Public Methods | |
| Interval (int start, int end, int data) | |
| boolean | contains (long time) |
| boolean | intersects (Interval other) |
| boolean | contains (Interval other) |
| int | compareTo (Interval other) |
Public Fields | |
| final int | data |
Package Attributes | |
| final int | start |
| final int | end |
| Interval | ( | int | start, |
| int | end, | ||
| int | data | ||
| ) |
| int compareTo | ( | Interval | other | ) |
Return -1 if this interval's start time is less than the other, 1 if greater In the event of a tie, -1 if this interval's end time is less than the other, 1 if greater, 0 if same
| other |
| boolean contains | ( | long | time | ) |
| time |
| boolean contains | ( | Interval | other | ) |
| boolean intersects | ( | Interval | other | ) |
| other |
| final int data |
final int end [package] |
final int start [package] |