Top Description Constructors Methods
org.apache.commons.compress.utils

public Class Lists

extends Object
Class Inheritance
Imports
java.util.ArrayList, .Iterator

List utilities
Since
1.13

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static <
type of elements contained in new list
E
>
ArrayList<E>

Returns:

a new ArrayList
newArrayList
()

Creates a new ArrayList.

public static <
type of elements contained in new list
E
>
ArrayList<E>

Returns:

a new ArrayList
newArrayList
(final Iterator<? extends E>
the source iterator
iterator
)

Creates a new ArrayList filled with the contents of the given iterator.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Listsback to summary
private Lists()

Method Detail

newArrayListback to summary
public static <E> ArrayList<E> newArrayList()

Creates a new ArrayList.

Parameters
<E>
type of elements contained in new list
Returns:ArrayList<E>

a new ArrayList

newArrayListback to summary
public static <E> ArrayList<E> newArrayList(final Iterator<? extends E> iterator)

Creates a new ArrayList filled with the contents of the given iterator.

Parameters
<E>
type of elements contained in new list
iterator:Iterator<? extends E>

the source iterator

Returns:ArrayList<E>

a new ArrayList