Javolution 6.0.0 java
javolution.util.service.SortedMapService< K, V > Interface Template Reference
Inheritance diagram for javolution.util.service.SortedMapService< K, V >:
[legend]
Collaboration diagram for javolution.util.service.SortedMapService< K, V >:
[legend]

Public Member Functions

SortedSetService< Map.Entry< K, V > > entrySet ()
 
SortedMapService< K, V > headMap (K toKey)
 
SortedSetService< K > keySet ()
 
SortedMapService< K, V > subMap (K fromKey, K toKey)
 
SortedMapService< K, V > tailMap (K fromKey)
 
SortedMapService< K, V > threadSafe ()
 
MapService< K, V > clone () throws CloneNotSupportedException
 
Iterator< Entry< K, V > > iterator ()
 
Equality<? super K > keyComparator ()
 
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)
 

Detailed Description

The set of related functionalities used to implement sorted map.

Author
Jean-Marie Dautelle
Version
6.0, July 21, 2013

Definition at line 20 of file SortedMapService.java.

Member Function Documentation

◆ clone()

MapService<K, V> javolution.util.service.MapService< K, V >.clone ( ) throws CloneNotSupportedException
inherited

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 >.

◆ entrySet()

SortedSetService<Map.Entry<K, V> > javolution.util.service.SortedMapService< 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.

Implements javolution.util.service.MapService< K, V >.

Implemented in javolution.util.internal.map.sorted.SortedMapView< K, V >, javolution.util.internal.map.sorted.SharedSortedMapImpl< K, V >, javolution.util.internal.map.sorted.AtomicSortedMapImpl< K, V >, and javolution.util.internal.map.sorted.UnmodifiableSortedMapImpl< K, V >.

◆ headMap()

◆ iterator()

◆ keyComparator()

◆ keySet()

◆ perform()

void javolution.util.function.Splittable< T >.perform ( Consumer< T >  action,
part 
)
inherited

Executes a read-only action on the specified part of this object.

Parameters
actionthe read-only action.
partthis object or a part of it.
Exceptions
UnsupportedOperationExceptionif the action tries to update the specified part.

◆ split()

T [] javolution.util.function.Splittable< T >.split ( int  n)
inherited

Returns

n

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).

Parameters
nthe number of parts.
Returns
the distinct parts (or views) for this object.
Exceptions
IllegalArgumentExceptionif
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().

Here is the caller graph for this function:

◆ subMap()

◆ tailMap()

◆ threadSafe()

◆ update()

void javolution.util.function.Splittable< T >.update ( Consumer< T >  action,
part 
)
inherited

Executes an update action on the specified part of this object. Any change to the part is reflected in the whole (this object).

Parameters
actionthe action authorized to update this object part.
partthis object or a part of it.

◆ valueComparator()

◆ values()

CollectionService<V> javolution.util.service.MapService< K, V >.values ( )
inherited

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 >.


The documentation for this interface was generated from the following file: