add explicit event list

This commit is contained in:
eyck committed 2021-02-27 13:27:51 +00:00
1 parent d65803a4b7
commit b69e1886b9
18 files changed
+560 -184

No files matched your search

@@ -0,0 +1,28 @@
package com.minres.scviewer.database;
public class EventEntry implements Comparable<EventEntry>{
public long timestamp; // unsigned
public IEvent[] events = null;
public EventEntry(long timestamp) {
this.timestamp = timestamp;
}
public EventEntry(long timestamp, IEvent[] events) {
this.timestamp = timestamp;
this.events = events;
}
@Override
public int compareTo(EventEntry o) {
return Long.compareUnsigned(timestamp, o.timestamp);
}
@Override
public String toString() {
return String.format("e.%d@%d", events.length,timestamp);
}
}