Java Code Examples for

The following are Jave code examples for showing how to use select() of the org.apache.commons.collections.CollectionUtils class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: aws-codecommit-trigger-plugin   File:   View Source Code Vote up 6 votes
public void testSelects() {
    Record r = new Record();
    List<Record> records = Arrays.asList(r, new Record());
    Collection<Record> sample =, new Predicate() {
        public boolean evaluate(Object o) {
            return o instanceof Record && ((Record) o).getUserIdentityARN() != null &&  ((Record) o).getUserIdentityARN().contains("sample");