/guava/guava/src/com/google/common/collect/Iterators.java
checkNotNull( a) ;checkNotNull( predicate) ;
checkNotNull ( predicate ) ;
public static <T extends @Nullable Object> boolean any( Iterator<T> iterator, Predicate<? super T> predicate) { return indexOf(iterator, predicate) != -1; } public static <T extends @Nullable Object> boolean all( Iterator<T> iterator, Predicate<? super T> predicate) { <extra_id_0> while (iterator.hasNext()) { T element = iterator.next(); if (!predicate.apply(element)) { return false; } }