@Test @SuppressWarnings("unchecked") public void testZipRemove() { final int DEFAULT = 10; Iterable<List<Integer>> meta = Iterables2.zip(DEFAULT, list(1, 2, 3, 4), list(5, 6, 7, 8), list(9)); Iterables.removeIf(meta, input -> Iterables.contains(input, DEFAULT)); assertValues(meta, list(1, 5, 9)); }
public static <T> Iterable<List<T>> zip(final Iterable<Iterable<T>> iterables, final T defaultValue) { return () -> new ZippingIterator<T>(iterables, defaultValue); }
Iterables2 { public static <T> Iterable<List<T>> zip(final Iterable<Iterable<T>> iterables, final T defaultValue) { return () -> new ZippingIterator<T>(iterables, defaultValue); } }
Iterables2 { public static <T> Iterable<List<T>> zip(final Iterable<Iterable<T>> iterables, final T defaultValue) { return () -> new ZippingIterator<T>(iterables, defaultValue); } private  Iterables2(); }
Iterables2 { public static <T> Iterable<List<T>> zip(final Iterable<Iterable<T>> iterables, final T defaultValue) { return () -> new ZippingIterator<T>(iterables, defaultValue); } private  Iterables2(); static Iterable<List<T>> zip(final Iterable<Iterable<T>> iterables,
      final T defaultValue); static Iterable<List<T>> zip(T defaultValue, Iterable<T>... iterables); }
Iterables2 { public static <T> Iterable<List<T>> zip(final Iterable<Iterable<T>> iterables, final T defaultValue) { return () -> new ZippingIterator<T>(iterables, defaultValue); } private  Iterables2(); static Iterable<List<T>> zip(final Iterable<Iterable<T>> iterables,
      final T defaultValue); static Iterable<List<T>> zip(T defaultValue, Iterable<T>... iterables);  }