MCPcopy Create free account
hub / github.com/akeranen/the-one / nextEventsTime

Method nextEventsTime

input/ExternalEventsQueue.java:96–104  ·  view source on GitHub ↗

Returns next event's time or Double.MAX_VALUE if there are no events left @return Next event's time

()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

eventsLeftInBufferMethod · 0.95
getTimeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected