Top Description Fields Constructors Methods
org.jparsec

pack-priv abstract Class ListFactory<T>

extends Object
Class Inheritance
Imports
java.util.ArrayList, .List, org.jparsec.internal.util.Lists

Creates a {link List}.
Author
Ben Yu

Field Summary

Modifier and TypeField and Description
private static final ListFactory<T>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static <T> ListFactory<T>
arrayListFactory()

Returns a ListFactory that creates an empty ArrayList.

pack-priv static <T> ListFactory<T>
arrayListFactoryWithFirstElement(final T first)

Returns a ListFactory that creates an ArrayList instance with first as the first element.

pack-priv abstract List<T>
newList()

Creates a new list.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ARRAY_LIST_FACTORYback to summary
private static final ListFactory<T> ARRAY_LIST_FACTORY
Annotations
@SuppressWarnings:rawtypes

Constructor Detail

ListFactoryback to summary
pack-priv ListFactory()

Method Detail

arrayListFactoryback to summary
pack-priv static <T> ListFactory<T> arrayListFactory()

Returns a ListFactory that creates an empty ArrayList.

Annotations
@SuppressWarnings:unchecked
arrayListFactoryWithFirstElementback to summary
pack-priv static <T> ListFactory<T> arrayListFactoryWithFirstElement(final T first)

Returns a ListFactory that creates an ArrayList instance with first as the first element.

newListback to summary
pack-priv abstract List<T> newList()

Creates a new list.