Example #1
0
 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;
 }
Example #2
0
 void addEventToLevel(Event e) {
   XEDictionaryNode node = new XEDictionaryNode();
   node.key = e;
   child.put(e, node);
 }