Returns next event's time or Double.MAX_VALUE if there are no events left @return Next event's time
()
| 94 | * @return Next event's time |
| 95 | */ |
| 96 | public double nextEventsTime() { |
| 97 | if (eventsLeftInBuffer() <= 0 ) { |
| 98 | // in case user request time of an event that doesn't exist |
| 99 | return Double.MAX_VALUE; |
| 100 | } |
| 101 | else { |
| 102 | return queue.get(nextEventIndex).getTime(); |
| 103 | } |
| 104 | } |
| 105 | |
| 106 | /** |
| 107 | * Returns the next event in the queue or ExternalEvent with time of |
nothing calls this directly
no test coverage detected