Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public int size() {
- if(source.isEmpty()) return 0;
- if(predicate.apply(source.head()))
- return 1 + new FilterView(source.tail(), predicate).size();
- source = source.tail();
- return size();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement