コード例 #1
0
 @Test
 public void reject() {
   ArrayList<Integer> list = this.getIntegerList();
   ArrayList<Integer> results =
       ArrayListIterate.reject(list, Predicates.instanceOf(Integer.class));
   Verify.assertEmpty(results);
 }
コード例 #2
0
 @Test
 public void rejectOver100() {
   ArrayList<Integer> list = new ArrayList<Integer>(Interval.oneTo(101));
   List<Integer> results = ArrayListIterate.reject(list, Predicates.instanceOf(Integer.class));
   Verify.assertEmpty(results);
 }