@Test
 public void partitionOver100() {
   ArrayList<Integer> list = new ArrayList<Integer>(Interval.oneTo(101));
   PartitionMutableList<Integer> result =
       ArrayListIterate.partition(list, Predicates.in(Lists.immutable.of(1)));
   Verify.assertSize(1, result.getSelected());
   Verify.assertSize(100, result.getRejected());
 }
Пример #2
0
 @Override
 public boolean containsAll(Collection<?> collection) {
   return Iterate.allSatisfy(collection, Predicates.in(this.items));
 }