org.apache.commons.compress.utils

## Class Lists

- java.lang.Object
- - org.apache.commons.compress.utils.Lists

-     public class Lists
      extends Object

  List utilities
  Since:
    1.13

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static <E> ArrayList<E>` | `newArrayList()` Creates a new `ArrayList`.
    `static <E> ArrayList<E>` | `newArrayList(Iterator<? extends E> iterator)` Creates a new `ArrayList` filled with the contents of the given `iterator`.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### newArrayList

          public static <E> 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> ArrayList<E> newArrayList(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`

Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.