Class Lists


  • public class Lists
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <E> java.util.List<E> copyOf​(java.util.Collection<? extends E> collection)  
      static <E> java.util.List<E> of()  
      static <E> java.util.List<E> of​(E e1)  
      static <E> java.util.List<E> of​(E... elements)  
      static <E> java.util.List<E> of​(E e1, E e2)  
      static <E> java.util.List<E> of​(E e1, E e2, E e3)  
      static <E> java.util.List<E> of​(E e1, E e2, E e3, E e4)  
      static <E> java.util.List<E> of​(E e1, E e2, E e3, E e4, E e5)  
      static <E> java.util.List<E> of​(E e1, E e2, E e3, E e4, E e5, E e6)  
      static <E> java.util.List<E> of​(E e1, E e2, E e3, E e4, E e5, E e6, E e7)  
      static <E> java.util.List<E> of​(E e1, E e2, E e3, E e4, E e5, E e6, E e7, E e8)  
      static <E> java.util.List<E> of​(E e1, E e2, E e3, E e4, E e5, E e6, E e7, E e8, E e9)  
      static <E> java.util.List<E> of​(E e1, E e2, E e3, E e4, E e5, E e6, E e7, E e8, E e9, E e10)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • of

        public static <E> java.util.List<E> of()
      • of

        public static <E> java.util.List<E> of​(E e1)
      • of

        public static <E> java.util.List<E> of​(E e1,
                                               E e2)
      • of

        public static <E> java.util.List<E> of​(E e1,
                                               E e2,
                                               E e3)
      • of

        public static <E> java.util.List<E> of​(E e1,
                                               E e2,
                                               E e3,
                                               E e4)
      • of

        public static <E> java.util.List<E> of​(E e1,
                                               E e2,
                                               E e3,
                                               E e4,
                                               E e5)
      • of

        public static <E> java.util.List<E> of​(E e1,
                                               E e2,
                                               E e3,
                                               E e4,
                                               E e5,
                                               E e6)
      • of

        public static <E> java.util.List<E> of​(E e1,
                                               E e2,
                                               E e3,
                                               E e4,
                                               E e5,
                                               E e6,
                                               E e7)
      • of

        public static <E> java.util.List<E> of​(E e1,
                                               E e2,
                                               E e3,
                                               E e4,
                                               E e5,
                                               E e6,
                                               E e7,
                                               E e8)
      • of

        public static <E> java.util.List<E> of​(E e1,
                                               E e2,
                                               E e3,
                                               E e4,
                                               E e5,
                                               E e6,
                                               E e7,
                                               E e8,
                                               E e9)
      • of

        public static <E> java.util.List<E> of​(E e1,
                                               E e2,
                                               E e3,
                                               E e4,
                                               E e5,
                                               E e6,
                                               E e7,
                                               E e8,
                                               E e9,
                                               E e10)
      • of

        @SafeVarargs
        public static <E> java.util.List<E> of​(E... elements)
      • copyOf

        public static <E> java.util.List<E> copyOf​(java.util.Collection<? extends E> collection)