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