Advertisement
crassus9999

Untitled

Apr 16th, 2014
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.23 KB | None | 0 0
  1. @Override
  2.     public boolean isEmpty() {
  3.         if(source.isEmpty()) return true;
  4.        
  5.         if(predicate.apply(source.head())) return false;
  6.        
  7.         source = source.tail();
  8.         return source.isEmpty();
  9.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement