Javolution 6.0.0 java
|
Public Member Functions | |
boolean | addIfAbsent (E element) |
int | positionOf (E element) |
SortedTableService< E > | threadSafe () |
TableService< E > | subList (int fromIndex, int toIndex) |
CollectionService< E > | clone () throws CloneNotSupportedException |
Equality<? super E > | comparator () |
void | perform (Consumer< T > action, T part) |
T[] | split (int n) |
void | update (Consumer< T > action, T part) |
The set of related functionalities used to implement sorted tables collections.
Definition at line 17 of file SortedTableService.java.
boolean javolution.util.service.SortedTableService< E >.addIfAbsent | ( | E | element | ) |
Adds the specified element only if not already present.
Implemented in javolution.util.internal.table.sorted.FastSortedTableImpl< E >, javolution.util.internal.table.sorted.SortedTableView< E >, javolution.util.internal.table.sorted.AtomicSortedTableImpl< E >, javolution.util.internal.table.sorted.SharedSortedTableImpl< E >, and javolution.util.internal.table.sorted.UnmodifiableSortedTableImpl< E >.
|
inherited |
Returns a copy of this collection; updates of the copy should not impact the original.
Implemented in javolution.util.internal.table.FastTableImpl< E >, javolution.util.internal.collection.SharedCollectionImpl< E >, javolution.util.internal.collection.AtomicCollectionImpl< E >, and javolution.util.internal.collection.CollectionView< E >.
|
inherited |
Returns the comparator used for element equality or order if the collection is sorted.
Implemented in javolution.util.internal.map.MapView< K, V >.KeySet, javolution.util.internal.collection.SharedCollectionImpl< E >, javolution.util.internal.bitset.BitSetServiceImpl, javolution.util.internal.table.FastTableImpl< E >, javolution.util.internal.table.SubTableImpl< E >, javolution.util.internal.collection.AtomicCollectionImpl< E >, javolution.util.internal.collection.SortedCollectionImpl< E >, javolution.util.internal.set.sorted.SubSortedSetImpl< E >, javolution.util.internal.collection.CollectionView< E >, javolution.util.internal.collection.FilteredCollectionImpl< E >, javolution.util.internal.table.UnmodifiableTableImpl< E >, javolution.util.internal.collection.DistinctCollectionImpl< E >, javolution.util.internal.map.MapView< K, V >.EntrySet, javolution.util.internal.table.ReversedTableImpl< E >, javolution.util.internal.collection.ReversedCollectionImpl< E >, javolution.util.internal.collection.UnmodifiableCollectionImpl< E >, javolution.util.internal.collection.ParallelCollectionImpl< E >, and javolution.util.internal.collection.SequentialCollectionImpl< E >.
Referenced by javolution.util.FastTable< javolution.xml.internal.stream.XMLStreamReaderImpl >.sort().
|
inherited |
Executes a read-only action on the specified part of this object.
action | the read-only action. |
part | this object or a part of it. |
UnsupportedOperationException | if the action tries to update the specified part. |
int javolution.util.service.SortedTableService< E >.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.
Implemented in javolution.util.internal.table.sorted.SortedTableView< E >, javolution.util.internal.table.sorted.FastSortedTableImpl< E >, javolution.util.internal.table.sorted.SharedSortedTableImpl< E >, javolution.util.internal.table.sorted.AtomicSortedTableImpl< E >, and javolution.util.internal.table.sorted.UnmodifiableSortedTableImpl< E >.
|
inherited |
Returns
distinct parts of this object. This method may return an array of size less than
(e.g. an array of size one if this object cannot split).
n | the number of parts. |
IllegalArgumentException | if n <= 1
|
Implemented in javolution.util.internal.map.MapView< K, V >, javolution.util.internal.table.SharedTableImpl< E >, javolution.util.internal.table.TableView< E >, javolution.util.internal.collection.SharedCollectionImpl< E >, javolution.util.internal.collection.CollectionView< E >, javolution.util.internal.table.AtomicTableImpl< E >, javolution.util.internal.map.SharedMapImpl< K, V >, javolution.util.internal.map.FastMapImpl< K, V >, javolution.util.internal.map.AtomicMapImpl< K, V >, javolution.util.internal.collection.AtomicCollectionImpl< E >, and javolution.util.internal.map.MapView< K, V >.EntrySet.
Referenced by javolution.util.internal.map.ParallelMapImpl< K, V >.perform(), and javolution.util.internal.collection.ParallelCollectionImpl< E >.perform().
|
inherited |
SortedTableService<E> javolution.util.service.SortedTableService< E >.threadSafe | ( | ) |
Returns a thread-safe version of this service (used during parallel updates).
Implements javolution.util.service.TableService< E >.
Implemented in javolution.util.internal.table.sorted.SortedTableView< E >, javolution.util.internal.table.sorted.FastSortedTableImpl< E >, javolution.util.internal.table.sorted.SharedSortedTableImpl< E >, javolution.util.internal.table.sorted.AtomicSortedTableImpl< E >, and javolution.util.internal.table.sorted.UnmodifiableSortedTableImpl< E >.
|
inherited |
Executes an update action on the specified part of this object. Any change to the part is reflected in the whole (this object).
action | the action authorized to update this object part. |
part | this object or a part of it. |