public class IntervalArray extends java.util.ArrayList<Interval>
| Constructor and Description |
|---|
IntervalArray()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
inInterval(double time) |
int |
inInterval(double startTime,
double endTime) |
void |
printInterval()
Print all the intervals in the intervalArray.
|
double |
totalInterval()
Get total time in each interval of the IntervalArray.
|
public void printInterval()
public double totalInterval()
public int inInterval(double time)
time - time to check in which intervalpublic int inInterval(double startTime,
double endTime)
startTime - starting time to checkendTime - ending time to check