Пример #1
0
 @Override
 public void update(Action action) {
   sub.update(action);
   pred.update(action);
 }
Пример #2
0
 public boolean hasNext() {
   while (sub.hasNext() && !pred.eval(sub.peekNext())) {
     sub.next();
   }
   return sub.hasNext();
 }