@Test public void anyShouldReturnFalseOnEmptySequence() { Assert.assertFalse(Linqy.<Object>any(new ArrayList(), null)); }
public static <T> boolean any(final Iterable<T> sequence, final Predicate<? super T> predicate) { for (T t : sequence) { if (predicate.test(t)) { return true; } } return false; }
Linqy { public static <T> boolean any(final Iterable<T> sequence, final Predicate<? super T> predicate) { for (T t : sequence) { if (predicate.test(t)) { return true; } } return false; } }
Linqy { public static <T> boolean any(final Iterable<T> sequence, final Predicate<? super T> predicate) { for (T t : sequence) { if (predicate.test(t)) { return true; } } return false; } private  Linqy(); }
Linqy { public static <T> boolean any(final Iterable<T> sequence, final Predicate<? super T> predicate) { for (T t : sequence) { if (predicate.test(t)) { return true; } } return false; } private  Linqy(); static List<E> asList(Iterable<E> i); static Iterable<E> cast(final Iterable i); static Iterable<E> singleton(final E single); static Iterable<T> map(final Iterable<F> from,
                                         final Mapper<? super F, T> mapper); static Iterable<T> filter(final Iterable<T> sequence,
                                         final Predicate<? super T> filter); static int count(Iterable seq); static boolean any(final Iterable<T> sequence,
                                  final Predicate<? super T> predicate); static boolean all(final Iterable<T> sequence,
                                  final Predicate<? super T> predicate); }
Linqy { public static <T> boolean any(final Iterable<T> sequence, final Predicate<? super T> predicate) { for (T t : sequence) { if (predicate.test(t)) { return true; } } return false; } private  Linqy(); static List<E> asList(Iterable<E> i); static Iterable<E> cast(final Iterable i); static Iterable<E> singleton(final E single); static Iterable<T> map(final Iterable<F> from,
                                         final Mapper<? super F, T> mapper); static Iterable<T> filter(final Iterable<T> sequence,
                                         final Predicate<? super T> filter); static int count(Iterable seq); static boolean any(final Iterable<T> sequence,
                                  final Predicate<? super T> predicate); static boolean all(final Iterable<T> sequence,
                                  final Predicate<? super T> predicate);  }