public interface SortedTableService<E> extends TableService<E>
Modifier and Type | Method and Description |
---|---|
boolean |
addIfAbsent(E element)
Adds the specified element only if not already present.
|
int |
positionOf(E element)
Returns what would be the index of the specified element if it were
to be added or the index of the specified element if already present.
|
SortedTableService<E> |
threadSafe()
Returns a thread-safe version of this service (used during
parallel updates).
|
subList
clone, comparator
perform, split, update
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, toArray, toArray
add, addFirst, addLast, contains, descendingIterator, element, getFirst, getLast, iterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, size
boolean addIfAbsent(E element)
true
if the element has been added;
false
otherwise.int positionOf(E element)
SortedTableService<E> threadSafe()
CollectionService
threadSafe
in interface CollectionService<E>
threadSafe
in interface TableService<E>
Copyright © 2005-2013 Javolution. All Rights Reserved.