Module de.cuioss.java.tools
Package de.cuioss.tools.collect
Class PartialArrayList<T extends Serializable>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<T>
de.cuioss.tools.collect.PartialArrayList<T>
- Type Parameters:
T- at leastSerializable
- All Implemented Interfaces:
PartialCollection<T>,Serializable,Cloneable,Iterable<T>,Collection<T>,List<T>,RandomAccess
public class PartialArrayList<T extends Serializable>
extends ArrayList<T>
implements PartialCollection<T>
- See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionPartialArrayList(Collection<T> list, boolean moreAvailable) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Serializable>
PartialArrayList<T>Static constructor for an empty instance.static <T extends Serializable>
PartialArrayList<T>Convenience method for creating aPartialArrayListas sublist for the given collection with setting thePartialCollection.isMoreAvailable()automaticallyMethods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
containsAllMethods inherited from interface de.cuioss.tools.collect.PartialCollection
isMoreAvailable
-
Constructor Details
-
PartialArrayList
Default constructor.- Parameters:
list- the list of entities to store.moreAvailable- the flag to store.
-
-
Method Details
-
emptyList
Static constructor for an empty instance.- Type Parameters:
T-- Returns:
- an empty
PartialArrayList.
-
of
Convenience method for creating aPartialArrayListas sublist for the given collection with setting thePartialCollection.isMoreAvailable()automatically- Type Parameters:
T- identifying the type of contained elements- Parameters:
full- the complete List to be wrapped, may be larger than the limit. If so, a sublist will be used.limit- to be checked against- Returns:
- a newly created
PartialArrayList.
-