Class IndexedLists


  • public class IndexedLists
    extends java.lang.Object
    IndexedLists is the preferred method of constructing instances of IndexedList.

    Vector is currently constructed in all cases, however this may change in the future.

    IndexedLists is preferred for construction as:

    • It works better in languages that support type inference
    • It allows future optimisations (e.g. small lists might start as arrays and get upgraded to Vectors)
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private IndexedLists()  
    • Constructor Detail

      • IndexedLists

        private IndexedLists()
    • Method Detail

      • of

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

        @NotNull
        public static <E> @NotNull IndexedList<E> of​(E t)
      • of

        @NotNull
        public static <E> @NotNull IndexedList<E> of​(E e1,
                                                     E e2)
      • of

        @NotNull
        public static <E> @NotNull IndexedList<E> of​(E e1,
                                                     E e2,
                                                     E e3)
      • of

        @NotNull
        public static <E> @NotNull IndexedList<E> of​(E e1,
                                                     E e2,
                                                     E e3,
                                                     E e4)
      • of

        @NotNull
        public static <E> @NotNull IndexedList<E> of​(E e1,
                                                     E e2,
                                                     E e3,
                                                     E e4,
                                                     E e5)
      • of

        @NotNull
        public static <E> @NotNull IndexedList<E> of​(E e1,
                                                     E e2,
                                                     E e3,
                                                     E e4,
                                                     E e5,
                                                     E e6)
      • of

        @NotNull
        public static <E> @NotNull IndexedList<E> of​(E e1,
                                                     E e2,
                                                     E e3,
                                                     E e4,
                                                     E e5,
                                                     E e6,
                                                     E e7)
      • of

        @NotNull
        public static <E> @NotNull IndexedList<E> of​(E e1,
                                                     E e2,
                                                     E e3,
                                                     E e4,
                                                     E e5,
                                                     E e6,
                                                     E e7,
                                                     E e8)
      • of

        @NotNull
        public static <E> @NotNull IndexedList<E> of​(E e1,
                                                     E e2,
                                                     E e3,
                                                     E e4,
                                                     E e5,
                                                     E e6,
                                                     E e7,
                                                     E e8,
                                                     E e9)
      • of

        @NotNull
        public static <E> @NotNull IndexedList<E> of​(E e1,
                                                     E e2,
                                                     E e3,
                                                     E e4,
                                                     E e5,
                                                     E e6,
                                                     E e7,
                                                     E e8,
                                                     E e9,
                                                     E e10)
      • of

        @NotNull
        public static <E> @NotNull IndexedList<E> of​(E e1,
                                                     E e2,
                                                     E e3,
                                                     E e4,
                                                     E e5,
                                                     E e6,
                                                     E e7,
                                                     E e8,
                                                     E e9,
                                                     E e10,
                                                     E... others)
      • construct

        private static <E> IndexedList<E> construct​(E... es)
      • 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)