@Constant(comment="Immutable") @DefaultXMLFormat(value=ConstantTable.XML.class) public class ConstantTable<E> extends FastTable<E>
A table for which immutability is guaranteed by construction.
| Modifier and Type | Class and Description |
|---|---|
static class |
ConstantTable.XML
The default XML representation for constant tables
(list of elements).
|
FastCollection.Text| Modifier | Constructor and Description |
|---|---|
protected |
ConstantTable(TableService<E> service)
Creates a constant table backed up by the specified
constant service implementation. |
| Modifier and Type | Method and Description |
|---|---|
ConstantTable<E> |
atomic()
Returns an atomic view over this collection.
|
static <E> ConstantTable<E> |
of(Collection<? extends E> that)
Returns a new constant table holding the same elements as the specified
collection (convenience method).
|
static <E> ConstantTable<E> |
of(E... elements)
Returns a new constant table holding the specified
constant elements. |
ConstantTable<E> |
reversed()
Returns a view exposing elements in reverse iterative order.
|
protected TableService<E> |
service()
Returns the service implementation of this collection (for sub-classes).
|
ConstantTable<E> |
shared()
Returns a thread-safe view over this collection.
|
ConstantTable<E> |
subTable(int fromIndex,
int toIndex)
Returns a view over a portion of the table (equivalent to
List.subList(int, int)). |
ConstantTable<E> |
unmodifiable()
Returns an unmodifiable view over this collection.
|
add, addAll, addFirst, addLast, clear, descendingIterator, element, get, getFirst, getLast, indexOf, isEmpty, lastIndexOf, listIterator, listIterator, mapped, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, sort, subListadd, addAll, any, comparator, comparator, contains, containsAll, distinct, equals, filtered, forEach, hashCode, iterator, max, min, parallel, perform, reduce, remove, removeAll, removeIf, retainAll, sequential, serviceOf, sorted, sorted, toArray, toArray, toString, updateclone, finalize, getClass, notify, notifyAll, wait, wait, waitprotected ConstantTable(@Constant TableService<E> service)
constant service implementation.public static <E> ConstantTable<E> of(@Constant E... elements)
constant elements.public static <E> ConstantTable<E> of(Collection<? extends E> that)
@Constant public ConstantTable<E> atomic()
FastCollectionConcurrentModificationException possible).@Constant public ConstantTable<E> reversed()
FastCollection@Constant public ConstantTable<E> shared()
FastCollectionConcurrentModificationException possible).@Constant public ConstantTable<E> subTable(int fromIndex, int toIndex)
FastTableList.subList(int, int)).@Constant public ConstantTable<E> unmodifiable()
FastCollectionUnsupportedOperationException being raised.unmodifiable in class FastTable<E>@Constant protected TableService<E> service()
FastCollectionCopyright © 2017. All rights reserved.