CompoundOrder(Iterable<? extends Comparator<? super T>> comparators) { this.comparators = checkContentsNotNull(comparators); }
private AndPredicate(Iterable<? extends Predicate<? super T>> components) { this.components = checkContentsNotNull(components); } public boolean apply(T t) {
private OrPredicate(Iterable<? extends Predicate<? super T>> components) { this.components = checkContentsNotNull(components); } public boolean apply(T t) {
/** * Combines multiple iterables into a single iterable. The returned iterable * has an iterator that traverses the elements of each iterable in * {@code inputs}. The input iterators are not polled until necessary. * * <p>The returned iterable's iterator supports {@code remove()} when the * corresponding input iterator supports it. * * @throws NullPointerException if any of the provided iterables is null */ public static <T> Iterable<T> concat(Iterable<? extends T>... inputs) { return concat(checkContentsNotNull(Arrays.asList(inputs))); }
/** * Combines multiple iterators into a single iterator. The returned iterator * iterates across the elements of each iterator in {@code inputs}. The input * iterators are not polled until necessary. * * <p>The returned iterator supports {@code remove()} when the corresponding * input iterator supports it. * * @throws NullPointerException if any of the provided iterators is null */ public static <T> Iterator<T> concat(Iterator<? extends T>... inputs) { return concat(checkContentsNotNull(Arrays.asList(inputs)).iterator()); }