Interface PSequence<E>
- Type Parameters:
E-
- All Superinterfaces:
Collection<E>, Iterable<E>, List<E>, PCollection<E>
- All Known Implementing Classes:
ConsPStack, TreePVector
An immutable, persistent indexed collection.
-
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.booleanaddAll(int index, Collection<? extends E> c) Deprecated.minus(int i) Returns a sequence consisting of the elements of this without the first occurrence of e.minusAll(Collection<?> list) plusAll(int i, Collection<? extends E> list) plusAll(Collection<? extends E> list) remove(int index) Deprecated.Deprecated.subList(int start, int end) Methods inherited from interface Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface List
add, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, removeAll, replaceAll, retainAll, size, sort, spliterator, toArray, toArray
-
Method Details
-
plus
-
plusAll
- Specified by:
plusAllin interfacePCollection<E>- Parameters:
list-- Returns:
- a collection which contains all of the elements of list and this
-
with
-
plus
-
plusAll
- Parameters:
i-list-- Returns:
- a sequence consisting of the elements of this with list inserted at index i.
-
minus
-
minusAll
- Specified by:
minusAllin interfacePCollection<E>- Parameters:
list-- Returns:
- this with all elements of list completely removed
-
minus
-
subList
-
addAll
Deprecated. -
set
-
add
-
remove
-