Package net.splitcells.dem.data.set.list
Class ListI<T>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<T>
-
- net.splitcells.dem.data.set.list.ListI<T>
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<T>
,Collection<T>
,List<T>
,RandomAccess
,List<T>
,ListView<T>
,SetT<T>
public class ListI<T> extends ArrayList<T> implements List<T>
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> List<T>
list()
void
prepareForSizeOf(int targetSize)
Allows the list allocate memory in advance in relation to the expectedList.size()
of this.-
Methods 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, trimToSize
-
Methods inherited from class java.util.AbstractCollection
containsAll, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
-
Methods inherited from interface net.splitcells.dem.data.set.list.List
addAll, assertEquals, firstValue, lastValue, removeAt, reverse, shallowCopy, shuffle, withAppended, withAppended, withRemovedByIndex
-
Methods inherited from interface net.splitcells.dem.data.set.list.ListView
hasElements, requireEmpty, requirePresenceOf, requireSizeOf
-
Methods inherited from interface net.splitcells.dem.data.set.SetT
flatMapped, hasDuplicates, mapped, reduced, requireEmptySet, requireSetSizeOf, requireUniqueness
-
-
-
-
Method Detail
-
list
public static <T> List<T> list()
-
prepareForSizeOf
public void prepareForSizeOf(int targetSize)
Description copied from interface:List
Allows the list allocate memory in advance in relation to the expectedList.size()
of this. This method is currently only intended for runtime improvements.- Specified by:
prepareForSizeOf
in interfaceList<T>
- Parameters:
targetSize
- The expected future return value ofList.size()
.
-
-