public static boolean notEmpty(Iterable<?> iterable) { return !IterableIterate.isEmpty(iterable); }
/** @see Iterate#filter(Iterable, Predicate) */ public static <T> MutableList<T> filter(Iterable<T> iterable, Predicate<? super T> predicate) { return IterableIterate.filter(iterable, predicate, FastList.<T>newList()); }
/** @see Iterate#transformIf(Iterable, Predicate, Function) */ public static <T, V> MutableList<V> transformIf( Iterable<T> iterable, Predicate<? super T> predicate, Function<? super T, ? extends V> function) { return IterableIterate.tranformIf(iterable, predicate, function, FastList.<V>newList()); }
/** @see Iterate#zip(Iterable, Iterable) */ public static <X, Y> Collection<Pair<X, Y>> zip(Iterable<X> xs, Iterable<Y> ys) { return IterableIterate.zip(xs, ys, FastList.<Pair<X, Y>>newList()); }
/** @see Iterate#zipWithIndex(Iterable) */ public static <T> Collection<Pair<T, Integer>> zipWithIndex(Iterable<T> iterable) { return IterableIterate.zipWithIndex(iterable, FastList.<Pair<T, Integer>>newList()); }
/** @see Iterate#groupByEach(Iterable, Function) */ public static <T, V> FastListMultimap<V, T> groupByEach( Iterable<T> iterable, Function<? super T, ? extends Iterable<V>> function) { return IterableIterate.groupByEach(iterable, function, new FastListMultimap<V, T>()); }
/** @see Iterate#drop(Iterable, int) */ public static <T> Collection<T> drop(Iterable<T> list, int count) { if (count < 0) { throw new IllegalArgumentException("Count must be greater than zero, but was: " + count); } return IterableIterate.drop(list, count, FastList.<T>newList()); }
/** @see Iterate#transformWith(Iterable, Function2, Object) */ public static <T, P, V> MutableList<V> transformWith( Iterable<T> iterable, Function2<? super T, ? super P, ? extends V> function, P parameter) { return IterableIterate.transformWith(iterable, function, parameter, FastList.<V>newList()); }
/** @see Iterate#flatTransform(Iterable, Function) */ public static <T, V> MutableList<V> flatTransform( Iterable<T> iterable, Function<? super T, ? extends Iterable<V>> function) { return IterableIterate.flatTransform(iterable, function, FastList.<V>newList()); }
/** @see Iterate#filterNot(Iterable, Predicate) */ public static <T> MutableList<T> filterNot( Iterable<T> collection, Predicate<? super T> predicate) { return IterableIterate.filterNot(collection, predicate, FastList.<T>newList()); }