Created
November 10, 2018 07:55
-
-
Save sjyun/e5b0c98e474e42936ec2eb409b0fadc7 to your computer and use it in GitHub Desktop.
predicate
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
List<T> aa; | |
List<T> filterAa(List<T> arr, aaPredicate p){ | |
for(){ | |
if(p.test(aa)){ | |
result.add(app); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
public static List globalFilter(List list, Predicate p){
List result = new ArrayList<>();
for(T e: list){
if(p.test(e)){
result.add(e);
}
}
return result;
}