Class ArrayLists
java.lang.Object
com.github.andrewoma.dexx.collection.ArrayLists
ArrayLists is the preferred method of constructing instances of ArrayList.
ArrayList is currently constructed in
all cases, however this may change in the future.
ArrayLists is preferred for construction as:
- It works better in languages that support type inference
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <E> @NotNull Builder<E, IndexedList<E>> builder()static <E> @NotNull IndexedList<E> copyOf(E[] es) static <E> @NotNull IndexedList<E> static <E> @NotNull IndexedList<E> static <E> @NotNull IndexedList<E> copyOfTraversable(Traversable<E> traversable) static <E> @NotNull BuilderFactory<E, IndexedList<E>> factory()static <E> @NotNull IndexedList<E> of(E... elements)
-
Constructor Details
-
ArrayLists
private ArrayLists()
-
-
Method Details
-
of
-
copyOf
-
copyOf
-
copyOf
-
copyOfTraversable
-
factory
-
builder
-