Class ArrayLists
- java.lang.Object
-
- com.github.andrewoma.dexx.collection.ArrayLists
-
public class ArrayLists extends java.lang.ObjectArrayListsis the preferred method of constructing instances ofArrayList.ArrayListis currently constructed in all cases, however this may change in the future.ArrayListsis preferred for construction as:- It works better in languages that support type inference
-
-
Constructor Summary
Constructors Modifier Constructor Description privateArrayLists()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <E> @NotNull Builder<E,IndexedList<E>>builder()static <E> @NotNull IndexedList<E>copyOf(E[] es)static <E> @NotNull IndexedList<E>copyOf(java.lang.Iterable<E> iterable)static <E> @NotNull IndexedList<E>copyOf(java.util.Iterator<E> iterator)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)
-
-
-
Method Detail
-
of
@NotNull public static <E> @NotNull IndexedList<E> of(E... elements)
-
copyOf
@NotNull public static <E> @NotNull IndexedList<E> copyOf(java.lang.Iterable<E> iterable)
-
copyOf
@NotNull public static <E> @NotNull IndexedList<E> copyOf(java.util.Iterator<E> iterator)
-
copyOf
@NotNull public static <E> @NotNull IndexedList<E> copyOf(E[] es)
-
copyOfTraversable
@NotNull public static <E> @NotNull IndexedList<E> copyOfTraversable(Traversable<E> traversable)
-
factory
@NotNull public static <E> @NotNull BuilderFactory<E,IndexedList<E>> factory()
-
builder
@NotNull public static <E> @NotNull Builder<E,IndexedList<E>> builder()
-
-