Javolution 6.0.0 java
|
Public Member Functions | |
MapService< K, V > | clone () throws CloneNotSupportedException |
SetService< Map.Entry< K, V > > | entrySet () |
Iterator< Entry< K, V > > | iterator () |
Equality<? super K > | keyComparator () |
SetService< K > | keySet () |
MapService< K, V > | threadSafe () |
Equality<? super V > | valueComparator () |
CollectionService< V > | values () |
void | perform (Consumer< T > action, T part) |
T[] | split (int n) |
void | update (Consumer< T > action, T part) |
The set of related map functionalities required to implement fast maps.
Definition at line 26 of file MapService.java.
MapService<K, V> javolution.util.service.MapService< K, V >.clone | ( | ) | throws CloneNotSupportedException |
Returns a copy of this map; updates of the copy should not impact the original.
Implemented in javolution.util.internal.map.MapView< K, V >, javolution.util.internal.map.AtomicMapImpl< K, V >, and javolution.util.internal.map.FastMapImpl< K, V >.
SetService<Map.Entry<K, V> > javolution.util.service.MapService< K, V >.entrySet | ( | ) |
Returns a set view over the entries of this map. The set support adding/removing entries. Two entries are considered equals if they have the same key regardless of their values.
Implemented in javolution.util.internal.map.MapView< K, V >, javolution.util.internal.map.sorted.SortedMapView< K, V >, javolution.util.internal.map.sorted.SharedSortedMapImpl< K, V >, javolution.util.internal.map.sorted.AtomicSortedMapImpl< K, V >, javolution.util.internal.map.sorted.UnmodifiableSortedMapImpl< K, V >, and javolution.util.service.SortedMapService< K, V >.
Referenced by javolution.util.internal.map.MapView< K, V >.EntrySet.split().
Iterator<Entry<K, V> > javolution.util.service.MapService< K, V >.iterator | ( | ) |
Returns an iterator over this map entries.
Implemented in javolution.util.internal.map.MapView< K, V >, javolution.util.internal.map.SharedMapImpl< K, V >, javolution.util.internal.map.sorted.SubSortedMapImpl< K, V >, javolution.util.internal.map.AtomicMapImpl< K, V >, javolution.util.internal.map.FastMapImpl< K, V >, javolution.util.internal.map.UnmodifiableMapImpl< K, V >, javolution.util.internal.map.sorted.FastSortedMapImpl< K, V >, javolution.util.internal.map.ParallelMapImpl< K, V >, and javolution.util.internal.map.SequentialMapImpl< K, V >.
Equality<? super K> javolution.util.service.MapService< K, V >.keyComparator | ( | ) |
Returns the key comparator used for key equality or order if the map is sorted.
Implemented in javolution.util.internal.map.MapView< K, V >, javolution.util.internal.map.SharedMapImpl< K, V >, javolution.util.internal.map.FastMapImpl< K, V >, javolution.util.internal.map.sorted.SubSortedMapImpl< K, V >, javolution.util.internal.map.AtomicMapImpl< K, V >, javolution.util.internal.map.UnmodifiableMapImpl< K, V >, javolution.util.internal.map.sorted.FastSortedMapImpl< K, V >, javolution.util.internal.map.ParallelMapImpl< K, V >, and javolution.util.internal.map.SequentialMapImpl< K, V >.
SetService<K> javolution.util.service.MapService< K, V >.keySet | ( | ) |
Returns a set view over the key of this map, the set support adding new key for which the value is automatically
.
Implemented in javolution.util.internal.map.MapView< K, V >, javolution.util.internal.map.sorted.SortedMapView< K, V >, javolution.util.internal.map.sorted.SharedSortedMapImpl< K, V >, javolution.util.internal.map.sorted.AtomicSortedMapImpl< K, V >, javolution.util.internal.map.sorted.UnmodifiableSortedMapImpl< K, V >, and javolution.util.service.SortedMapService< K, V >.
|
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. |
|
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().
MapService<K,V> javolution.util.service.MapService< K, V >.threadSafe | ( | ) |
Returns a thread-safe version of this service (used during parallel updates).
Implemented in javolution.util.internal.map.MapView< K, V >, javolution.util.internal.map.SharedMapImpl< K, V >, javolution.util.internal.map.AtomicMapImpl< K, V >, javolution.util.internal.map.sorted.SortedMapView< K, V >, javolution.util.internal.map.UnmodifiableMapImpl< K, V >, javolution.util.internal.map.sorted.SharedSortedMapImpl< K, V >, javolution.util.internal.map.sorted.AtomicSortedMapImpl< K, V >, javolution.util.internal.map.sorted.UnmodifiableSortedMapImpl< K, V >, and javolution.util.service.SortedMapService< K, V >.
Referenced by javolution.util.internal.map.ParallelMapImpl< K, V >.update().
|
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. |
Equality<? super V> javolution.util.service.MapService< K, V >.valueComparator | ( | ) |
Returns the value comparator used for value equality.
Implemented in javolution.util.internal.map.MapView< K, V >, javolution.util.internal.map.SharedMapImpl< K, V >, javolution.util.internal.map.FastMapImpl< K, V >, javolution.util.internal.map.AtomicMapImpl< K, V >, javolution.util.internal.map.sorted.SubSortedMapImpl< K, V >, javolution.util.internal.map.ParallelMapImpl< K, V >, javolution.util.internal.map.sorted.FastSortedMapImpl< K, V >, javolution.util.internal.map.UnmodifiableMapImpl< K, V >, and javolution.util.internal.map.SequentialMapImpl< K, V >.
CollectionService<V> javolution.util.service.MapService< K, V >.values | ( | ) |
Returns a collection view over the values of this map, the collection support value/entry removal but not adding new values.
Implemented in javolution.util.internal.map.MapView< K, V >.