@Override public void update(Action action) { sub.update(action); pred.update(action); }
public boolean hasNext() { while (sub.hasNext() && !pred.eval(sub.peekNext())) { sub.next(); } return sub.hasNext(); }