Advertisement
crassus9999

Untitled

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