Java Iterable convertIterable(final Iterable> iterables)

Here you can find the source of convertIterable(final Iterable> iterables)

Description

convert Iterable

License

Apache License

Declaration

public static <U> Iterable<Iterator<U>> convertIterable(final Iterable<? extends Iterable<U>> iterables) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;

public class Main {
    public static <U> Iterable<Iterator<U>> convertIterable(final Iterable<? extends Iterable<U>> iterables) {
        final List<Iterator<U>> iterators = new LinkedList<>();
        for (Iterable<U> i : iterables) {
            iterators.add(i.iterator());
        }/*from w w w. j a  v  a2 s .co m*/
        return iterators;
    }
}

Related

  1. appendTo(StringBuilder appendable, Iterable parts, CharSequence separator)
  2. commafy(Iterable col, StringBuilder builder)
  3. containsSame(Iterable coll, Object obj)
  4. createDelimitedString(Iterable iterable, String delimiter)
  5. createUpdateTemplate(String table, Iterable columns)
  6. equal(Iterable it1, Iterable it2)
  7. equalsIterablesInOrder(Iterable i1, Iterable i2)