Interface PVector<E>
- Type Parameters:
E-
- All Superinterfaces:
Collection<E>, Iterable<E>, List<E>, PCollection<E>, PSequence<E>
- All Known Implementing Classes:
TreePVector
An immutable, persistent list.
-
Method Summary
Modifier and TypeMethodDescriptionminus(int i) Returns a sequence consisting of the elements of this without the first occurrence of e.minusAll(Collection<?> list) Returns a vector consisting of the elements of this with e appended.plusAll(int i, Collection<? extends E> list) plusAll(Collection<? extends E> list) Returns a vector consisting of the elements of this with list appended.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
Returns a vector consisting of the elements of this with list appended. -
with
-
plus
-
plusAll
-
minus
Description copied from interface:PSequenceReturns a sequence consisting of the elements of this without the first occurrence of e. -
minusAll
-
minus
-
subList
-