Class ArrayLists


  • public class ArrayLists
    extends java.lang.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 Detail

      • ArrayLists

        private ArrayLists()
    • 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)