public void build(EventSet e) { for (int i = 0; i < e.size(); i++) { Event start = e.eventAt(i); if (!root.isEventInLevel(start)) { insertAtRoot(start, e, i); } else { insertBelowRoot(start, e, i); } } root.key = null; }
void addEventToLevel(Event e) { XEDictionaryNode node = new XEDictionaryNode(); node.key = e; child.put(e, node); }