public interface TableService<E> extends CollectionService<E>
CollectionService.IterationController
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
E element)
Inserts the specified element at the specified position in this list
Shifts the element currently at that position to the right.
|
void |
addFirst(E element)
Inserts the specified element at the front of this table.
|
void |
addLast(E element)
Inserts the specified element at the end of this table.
|
void |
clear()
Removes all of the elements from this table.
|
E |
get(int index)
Returns the element at the specified position.
|
E |
getFirst()
Returns the first element.
|
E |
getLast()
Returns the last element.
|
E |
peekFirst()
Retrieves, but does not remove, the first element of this table,
or returns
null if this table is empty (atomic operation). |
E |
peekLast()
Retrieves, but does not remove, the last element of this table,
or returns
null if this table is empty (atomic operation). |
E |
pollFirst()
Retrieves and removes the first element of this table,
or returns
null if this table is empty (atomic operation). |
E |
pollLast()
Retrieves and removes the last element of this table,
or returns
null if this table is empty (atomic operation). |
E |
remove(int index)
Removes the element as the specified position.
|
E |
removeFirst()
Retrieves and removes the first element of this table.
|
E |
removeLast()
Retrieves and removes the last element of this table.
|
E |
set(int index,
E element)
Replaces the element at the specified position and returns the
previous element.
|
int |
size()
Returns the number of elements in this table.
|
add, atomic, comparator, forEach, iterator, removeIf, trySplit
void add(int index, E element)
void addFirst(E element)
void addLast(E element)
void clear()
E get(int index)
E getFirst()
E getLast()
E peekFirst()
null
if this table is empty (atomic operation).E peekLast()
null
if this table is empty (atomic operation).E pollFirst()
null
if this table is empty (atomic operation).E pollLast()
null
if this table is empty (atomic operation).E remove(int index)
E removeFirst()
E removeLast()
E set(int index, E element)
int size()
Copyright © 2005-2013 Javolution. All Rights Reserved.