- 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 TypeMethodDescriptionvoid
Deprecated.boolean
addAll
(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 java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.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
- Specified by:
plus
in interfacePCollection<E>
- Parameters:
e
-- Returns:
- a collection which contains e and all of the elements of this
-
plusAll
- Specified by:
plusAll
in interfacePCollection<E>
- Parameters:
list
-- Returns:
- a collection which contains all of the elements of list and this
-
with
- Parameters:
i
-e
-- Returns:
- a sequence consisting of the elements of this with e replacing the element at index i.
-
plus
- Parameters:
i
-e
-- Returns:
- a sequence consisting of the elements of this with e inserted at index i.
-
plusAll
- Parameters:
i
-list
-- Returns:
- a sequence consisting of the elements of this with list inserted at index i.
-
minus
Returns a sequence consisting of the elements of this without the first occurrence of e.- Specified by:
minus
in interfacePCollection<E>
- Parameters:
e
-- Returns:
- this with a single instance of e removed, if e is in this
-
minusAll
- Specified by:
minusAll
in interfacePCollection<E>
- Parameters:
list
-- Returns:
- this with all elements of list completely removed
-
minus
- Parameters:
i
-- Returns:
- a sequence consisting of the elements of this with the element at index i removed.
-
subList
-
addAll
Deprecated. -
set
Deprecated. -
add
Deprecated. -
remove
Deprecated.
-