![]() |
AI2 Component
(Version nb184)
|
Static Public Member Functions | |
static< E > ArrayList< E > | newArrayList () |
static< E > ArrayList< E > | newArrayList (E... elements) |
Provides static methods for creating
instances easily, and other utility methods for working with lists.
Note: This was copied from the com.google.android.collect.Lists class
Definition at line 20 of file Lists.java.
|
static |
Creates an empty
instance.
Note: if you only need an immutable empty List, use Collections#emptyList instead.
Definition at line 30 of file Lists.java.
|
static |
Creates a resizable
instance containing the given elements.
Note: due to a bug in javac 1.5.0_06, we cannot support the following:
where
and
are references to subtypes of
, not of
itself. To get around this, you must use:
elements | the elements that the list should contain, in order |
Definition at line 52 of file Lists.java.