Class Lists


  • public class Lists
    extends java.lang.Object
    List utilities
    Since:
    1.13
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <E> java.util.ArrayList<E> newArrayList()
      Creates a new ArrayList.
      static <E> java.util.ArrayList<E> newArrayList​(java.util.Iterator<? extends E> iterator)
      Creates a new ArrayList filled with the contents of the given iterator.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • newArrayList

        public static <E> java.util.ArrayList<E> newArrayList()
        Creates a new ArrayList.
        Type Parameters:
        E - type of elements contained in new list
        Returns:
        a new ArrayList
      • newArrayList

        public static <E> java.util.ArrayList<E> newArrayList​(java.util.Iterator<? extends E> iterator)
        Creates a new ArrayList filled with the contents of the given iterator.
        Type Parameters:
        E - type of elements contained in new list
        Parameters:
        iterator - the source iterator
        Returns:
        a new ArrayList