public final class Lists
extends Object
Internal utility to work with
List
.
-
Constructor Summary
Constructors
-
Method Summary
Returns a new
ArrayList
with enough capacity to hold
expectedElements
.
private static int
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Details
-
-
arrayList
public static <T> ArrayList<T> arrayList(int expectedElements)
Returns a new
ArrayList
with enough capacity to hold
expectedElements
.
-
capacity
private static int capacity(int expectedElements)