@Override public boolean allSatisfy(Predicate<? super T> predicate) { return ArrayListIterate.allSatisfy(this.delegate, predicate); }
/** * Returns true if the predicate evaluates to true for every element of the iterable, or returns false. * Returns true if the iterable is empty. */ public static <T> boolean allSatisfy(Iterable<T> iterable, Predicate<? super T> predicate) { if (iterable instanceof RichIterable) { return ((RichIterable<T>) iterable).allSatisfy(predicate); } if (iterable instanceof ArrayList) { return ArrayListIterate.allSatisfy((ArrayList<T>) iterable, predicate); } if (iterable instanceof RandomAccess) { return RandomAccessListIterate.allSatisfy((List<T>) iterable, predicate); } if (iterable != null) { return IterableIterate.allSatisfy(iterable, predicate); } throw new IllegalArgumentException("Cannot perform an allSatisfy on null"); }
@Override public boolean allSatisfy(Predicate<? super T> predicate) { return ArrayListIterate.allSatisfy(this.delegate, predicate); }
/** * Returns true if the predicate evaluates to true for every element of the iterable, or returns false. * Returns true if the iterable is empty. */ public static <T> boolean allSatisfy(Iterable<T> iterable, Predicate<? super T> predicate) { if (iterable instanceof RichIterable) { return ((RichIterable<T>) iterable).allSatisfy(predicate); } if (iterable instanceof ArrayList) { return ArrayListIterate.allSatisfy((ArrayList<T>) iterable, predicate); } if (iterable instanceof RandomAccess) { return RandomAccessListIterate.allSatisfy((List<T>) iterable, predicate); } if (iterable != null) { return IterableIterate.allSatisfy(iterable, predicate); } throw new IllegalArgumentException("Cannot perform an allSatisfy on null"); }