Package org.jppf.utils.collections
Class AbstractCollectionSortedMap<K,V>
java.lang.Object
org.jppf.utils.collections.AbstractCollectionMap<K,V>
org.jppf.utils.collections.AbstractCollectionSortedMap<K,V>
- Type Parameters:
K- the type of keys in the map.V- the type of values in the collections mapped to the keys.
- All Implemented Interfaces:
Serializable,Iterable<V>,CollectionMap<K,,V> CollectionSortedMap<K,V>
- Direct Known Subclasses:
ArrayListSortedMap,LinkedListSortedMap,SetSortedMap,SortedSetSortedMap
public abstract class AbstractCollectionSortedMap<K,V>
extends AbstractCollectionMap<K,V>
implements CollectionSortedMap<K,V>
A sorted map whose values are sets of a given component type.
- Author:
- Laurent Cohen
- See Also:
-
Field Summary
FieldsFields inherited from class org.jppf.utils.collections.AbstractCollectionMap
map -
Constructor Summary
ConstructorsConstructorDescriptionDefault cosntructor.AbstractCollectionSortedMap(Comparator<K> comparator) Initialize this collection sorted map with the specified comparator. -
Method Summary
Methods inherited from class org.jppf.utils.collections.AbstractCollectionMap
addValues, addValues, allValues, clear, containsKey, containsValue, containsValue, createOrGetCollection, createOrGetCollectionSynchronized, entrySet, getValues, isEmpty, iterator, iterator, keySet, newCollection, putValue, removeKey, removeValue, removeValues, size, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jppf.utils.collections.CollectionMap
addValues, addValues, allValues, clear, containsKey, containsValue, containsValue, entrySet, forEach, getValues, isEmpty, iterator, keySet, putValue, removeKey, removeValue, removeValues, sizeMethods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Field Details
-
comparator
Comparator used to sort the keys.
-
-
Constructor Details
-
AbstractCollectionSortedMap
public AbstractCollectionSortedMap()Default cosntructor. -
AbstractCollectionSortedMap
Initialize this collection sorted map with the specified comparator.- Parameters:
comparator- comparator used to sort the keys.
-
-
Method Details
-
createMap
Description copied from class:AbstractCollectionMapCreate a new map.- Specified by:
createMapin classAbstractCollectionMap<K,V> - Returns:
- a new mutable empty map.
-
firstKey
Description copied from interface:CollectionSortedMapGet the last key in this sorted map.- Specified by:
firstKeyin interfaceCollectionSortedMap<K,V> - Returns:
- the last key based on the order of the map.
-
lastKey
Description copied from interface:CollectionSortedMapGet the last key in this sorted map.- Specified by:
lastKeyin interfaceCollectionSortedMap<K,V> - Returns:
- the last key based on the order of the map.
-