@SuppressWarnings({"NullableProblems"}) @Test(expectedExceptions = NullPointerException.class) public void partitionShouldThrowNPEIfPredicateIsNull() { partition(ImmutableList.of(1, 2, 3), null); }
public static <E> Pair<Collection<E>, Collection<E>> partition(Collection<E> unpartitioned, Predicate<? super E> predicate) { return pair(filter(checkNotNull(unpartitioned), checkNotNull(predicate)), filter(unpartitioned, not(predicate))); }
Collections3 { public static <E> Pair<Collection<E>, Collection<E>> partition(Collection<E> unpartitioned, Predicate<? super E> predicate) { return pair(filter(checkNotNull(unpartitioned), checkNotNull(predicate)), filter(unpartitioned, not(predicate))); } }
Collections3 { public static <E> Pair<Collection<E>, Collection<E>> partition(Collection<E> unpartitioned, Predicate<? super E> predicate) { return pair(filter(checkNotNull(unpartitioned), checkNotNull(predicate)), filter(unpartitioned, not(predicate))); } private  Collections3(); }
Collections3 { public static <E> Pair<Collection<E>, Collection<E>> partition(Collection<E> unpartitioned, Predicate<? super E> predicate) { return pair(filter(checkNotNull(unpartitioned), checkNotNull(predicate)), filter(unpartitioned, not(predicate))); } private  Collections3(); static Pair<Collection<E>, Collection<E>> partition(Collection<E> unpartitioned,
                                                                   Predicate<? super E> predicate); static Optional<T> findFirstInstanceOf(Collection<? super T> coll, Class<T> cls); static T maxNullSafe(Collection<? extends T> coll, Comparator<? super T> comp); static T maxNullSafe(Collection<? extends T> coll); }
Collections3 { public static <E> Pair<Collection<E>, Collection<E>> partition(Collection<E> unpartitioned, Predicate<? super E> predicate) { return pair(filter(checkNotNull(unpartitioned), checkNotNull(predicate)), filter(unpartitioned, not(predicate))); } private  Collections3(); static Pair<Collection<E>, Collection<E>> partition(Collection<E> unpartitioned,
                                                                   Predicate<? super E> predicate); static Optional<T> findFirstInstanceOf(Collection<? super T> coll, Class<T> cls); static T maxNullSafe(Collection<? extends T> coll, Comparator<? super T> comp); static T maxNullSafe(Collection<? extends T> coll);  }