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 the index of the specified element if present; or a negative
number equals to
-n with n being the index next to
the "would be" index of the specified element if the specified element
was to be added. |
SortedTableService<E>[] |
split(int n,
boolean updateable)
Returns
n distinct parts of this object. |
subListclone, comparatorperform, updateadd, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, toArray, toArrayadd, 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, sizeboolean addIfAbsent(E element)
true if the element has been added;
false otherwise.int positionOf(E element)
-n with n being the index next to
the "would be" index of the specified element if the specified element
was to be added.SortedTableService<E>[] split(int n, boolean updateable)
Splittablen distinct parts of this object.
This method may return an array of size less than n
(e.g. an array of size one if this object cannot split).split in interface Splittable<CollectionService<E>>split in interface TableService<E>n - the number of parts.updateable - true if the returned parts can be updated
concurrently; false otherwise.Copyright © 2017. All rights reserved.