Package org.jparsec.internal.util
Class Lists
- java.lang.Object
-
- org.jparsec.internal.util.Lists
-
public final class Lists extends java.lang.ObjectInternal utility to work withList.
-
-
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 newArrayList.static <T> java.util.ArrayList<T>arrayList(int expectedElements)Returns a newArrayListwith enough capacity to holdexpectedElements.private static intcapacity(int expectedElements)
-
-
-
Method Detail
-
arrayList
public static <T> java.util.ArrayList<T> arrayList()
Returns a newArrayList.
-
arrayList
public static <T> java.util.ArrayList<T> arrayList(int expectedElements)
Returns a newArrayListwith enough capacity to holdexpectedElements.
-
capacity
private static int capacity(int expectedElements)
-
-