Go to the documentation of this file.
9 package javolution.util.internal.table;
11 import java.util.Collection;
12 import java.util.Iterator;
13 import java.util.ListIterator;
14 import java.util.NoSuchElementException;
40 public boolean addAll(
int index, Collection<? extends E> c) {
41 return subList(index, index).addAll(c);
73 public abstract E
get(
int index);
84 return get(
size() - 1);
87 @SuppressWarnings(
"unchecked")
91 for (
int i = 0, n =
size(); i < n; i++) {
92 if (cmp.
areEqual(o,
get(i)))
return i;
107 @SuppressWarnings(
"unchecked")
111 for (
int i =
size() - 1; i >= 0; i--) {
112 if (cmp.
areEqual(o,
get(i)))
return i;
185 public final E
remove() {
190 public abstract E
remove(
int index);
193 public final boolean remove(Object o) {
195 if (i < 0)
return false;
209 if (i < 0)
return false;
217 return remove(
size() - 1);
223 if (i < 0)
return false;
251 throw new NoSuchElementException(
"Empty Table");
256 throw new IndexOutOfBoundsException(
"index: " + index +
", size: "
boolean areEqual(T left, T right)
static< E > CollectionService< E >[] splitOf(TableService< E > table, int n)
final boolean offerLast(E e)
boolean addAll(int index, Collection<? extends E > c)
ListIterator< E > listIterator(int index)
int lastIndexOf(Object o)
abstract Equality<? super E > comparator()
CollectionService< E >[] split(int n)
abstract void add(int index, E element)
TableView(TableService< E > target)
boolean removeLastOccurrence(Object o)
boolean removeFirstOccurrence(Object o)
TableService< E > target()
void indexError(int index)
TableService< E > subList(int fromIndex, int toIndex)
static final long serialVersionUID
final boolean offerFirst(E e)
final boolean contains(Object o)
final ListIterator< E > listIterator()
TableService< E > threadSafe()
Iterator< E > descendingIterator()