/** * Builds an empty IteratorNode */ public IteratorNode(){ IteratingNotifier<T> in = new IteratingNotifier<T>(); myListener = new ConditionalListener<List<T>>(this, in); myNotifier = new ConditionalNotifier<T>(this, in); }
/** * Receives a List of events and notifies for each one * @param event collection of events */ @Override public void handleEvent(List<T> event) { for(T t : event){ notifyListeners(t); } } }