Package net.splitcells.dem.data.set.list
Interface List<T>
-
-
Method Summary
All Methods Instance Methods Default Methods Deprecated Methods Modifier and Type Method Description default void
addAll(T requiredArg, T... args)
Deprecated.default void
assertEquals(List<T> arg)
default Optional<T>
firstValue()
default Optional<T>
lastValue()
default void
prepareForSizeOf(int targetSize)
Allows the list allocate memory in advance in relation to the expectedList.size()
of this.default void
removeAt(int index)
default List<T>
reverse()
default List<T>
shallowCopy()
default List<T>
shuffle(Randomness rnd)
default List<T>
withAppended(Collection<T> args)
default List<T>
withAppended(T... args)
default List<T>
withRemovedByIndex(int index)
-
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.ListView
hasElements
-
Methods inherited from interface net.splitcells.dem.data.set.SetT
flatMapped, hasDuplicates, mapped, reduced, requireSizeOf, requireUniqueness
-
-
-
-
Method Detail
-
removeAt
default void removeAt(int index)
-
addAll
@Deprecated default void addAll(T requiredArg, T... args)
Deprecated.
-
withAppended
default List<T> withAppended(Collection<T> args)
-
shuffle
default List<T> shuffle(Randomness rnd)
-
prepareForSizeOf
default void prepareForSizeOf(int targetSize)
Allows the list allocate memory in advance in relation to the expectedList.size()
of this. This method is currently only intended for runtime improvements.- Parameters:
targetSize
- The expected future return value ofList.size()
.
-
-