Class Lists


  • public final class Lists
    extends java.lang.Object
    Internal utility to work with List.
    • Constructor Summary

      Constructors 
      Constructor Description
      Lists()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> java.util.ArrayList<T> arrayList()
      Returns a new ArrayList.
      static <T> java.util.ArrayList<T> arrayList​(int expectedElements)
      Returns a new ArrayList with enough capacity to hold expectedElements.
      private static int capacity​(int expectedElements)  
      • Methods inherited from class java.lang.Object

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

      • Lists

        public Lists()
    • Method Detail

      • arrayList

        public static <T> java.util.ArrayList<T> arrayList()
        Returns a new ArrayList.
      • arrayList

        public static <T> java.util.ArrayList<T> arrayList​(int expectedElements)
        Returns a new ArrayList with enough capacity to hold expectedElements.
      • capacity

        private static int capacity​(int expectedElements)