Class ArrayLists

java.lang.Object
com.github.andrewoma.dexx.collection.ArrayLists

public class ArrayLists extends Object
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 Details

    • ArrayLists

      private ArrayLists()
  • Method Details

    • of

      @NotNull public static <E> @NotNull IndexedList<E> of(E... elements)
    • copyOf

      @NotNull public static <E> @NotNull IndexedList<E> copyOf(Iterable<E> iterable)
    • copyOf

      @NotNull public static <E> @NotNull IndexedList<E> copyOf(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()