Ejemplo n.º 1
0
 private List<AggregateEvent> asList(AggregateEventStream AggregateEventStream) {
   List<AggregateEvent> unseenEvents = new ArrayList<AggregateEvent>();
   while (AggregateEventStream.hasNext()) {
     unseenEvents.add(AggregateEventStream.next());
   }
   return unseenEvents;
 }
Ejemplo n.º 2
0
 @Override
 public boolean hasNext() {
   return eventStream.hasNext();
 }