Top Description Constructors Methods
org.jparsec.internal.util

public final Class Lists

extends Object
Class Inheritance
Imports
java.util.ArrayList

Internal utility to work with java.util.List.
Author
Ben Yu

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static <T> ArrayList<T>
arrayList()

Returns a new ArrayList.

public static <T> ArrayList<T>
arrayList(int expectedElements)

Returns a new ArrayList with enough capacity to hold expectedElements.

private static int
capacity(int expectedElements)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Listsback to summary
public Lists()

Method Detail

arrayListback to summary
public static <T> ArrayList<T> arrayList()

Returns a new ArrayList.

arrayListback to summary
public static <T> ArrayList<T> arrayList(int expectedElements)

Returns a new ArrayList with enough capacity to hold expectedElements.

capacityback to summary
private static int capacity(int expectedElements)