Java Iterable to List ToList(Iterable inList)

Here you can find the source of ToList(Iterable inList)

Description

To List

License

Apache License

Declaration

public static <T> java.util.ArrayList<T> ToList(Iterable<T> inList) 

Method Source Code

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

public class Main {
    public static <T> java.util.ArrayList<T> ToList(Iterable<T> inList) {
        java.util.ArrayList<T> outList = new java.util.ArrayList<T>();
        for (T item : inList) {
            outList.add(item);/*from   w  w w  .  j a v a 2s. c  o m*/
        }
        return outList;
    }
}

Related

  1. toList(Iterable items)
  2. toList(Iterable iter)
  3. toList(Iterable values)
  4. toList(Iterable protocols)
  5. toList(Iterable elements)
  6. toList(Iterable it)
  7. toList(Iterable items)
  8. toList(Iterable iter)
  9. toList(Iterable iterable)