Class Lists


  • public final class Lists
    extends java.lang.Object
    List utilities.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Lists()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> java.util.List<T> of​(T first, T[] rest)
      Returns a list containing the first element followed by the rest.
      • Methods inherited from class java.lang.Object

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

      • Lists

        private Lists()
    • Method Detail

      • of

        public static <T> java.util.List<T> of​(T first,
                                               T[] rest)
        Returns a list containing the first element followed by the rest.