E - public class TreePVector<E> extends java.util.AbstractList<E> implements PSequence<E>
This implementation is backed by an IntTreePMap and supports logarithmic-time querying, setting, insertion, and removal.
This implementation is thread-safe (assuming Java's AbstractList is thread-safe) although its iterators may not be.
| Modifier and Type | Method and Description |
|---|---|
static <E> TreePVector<E> |
empty() |
static <E> TreePVector<E> |
from(java.util.Collection<? extends E> list) |
E |
get(int index) |
java.util.Iterator<E> |
iterator() |
TreePVector<E> |
minus(int i) |
TreePVector<E> |
minus(java.lang.Object e)
Returns a sequence consisting of the elements of this without the first occurrence of e.
|
TreePVector<E> |
minusAll(java.util.Collection<?> list) |
TreePVector<E> |
plus(E e) |
TreePVector<E> |
plus(int i,
E e) |
TreePVector<E> |
plusAll(java.util.Collection<? extends E> list) |
TreePVector<E> |
plusAll(int i,
java.util.Collection<? extends E> list) |
static <E> TreePVector<E> |
singleton(E e) |
int |
size() |
TreePVector<E> |
subList(int start) |
TreePVector<E> |
subList(int start,
int end) |
TreePVector<E> |
with(int i,
E e) |
add, add, addAll, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, listIterator, remove, removeRange, setaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static <E> TreePVector<E> empty()
E - public static <E> TreePVector<E> singleton(E e)
E - e - public static <E> TreePVector<E> from(java.util.Collection<? extends E> list)
E - list - public int size()
public E get(int index)
public java.util.Iterator<E> iterator()
public TreePVector<E> subList(int start, int end)
public TreePVector<E> subList(int start)
public TreePVector<E> plus(int i, E e)
public TreePVector<E> minus(java.lang.Object e)
PSequencepublic TreePVector<E> minus(int i)
public TreePVector<E> plusAll(java.util.Collection<? extends E> list)
public TreePVector<E> minusAll(java.util.Collection<?> list)
public TreePVector<E> plusAll(int i, java.util.Collection<? extends E> list)
Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.