org.terracotta.toolkit.collections
Interface ToolkitSortedMap<K extends Comparable<? super K>,V>

All Superinterfaces:
ConcurrentMap<K,V>, Destroyable, Map<K,V>, SortedMap<K,V>, ToolkitLockedObject, ToolkitMap<K,V>, ToolkitObject

public interface ToolkitSortedMap<K extends Comparable<? super K>,V>
extends SortedMap<K,V>, ToolkitMap<K,V>

A toolkit sorted map. The sorted map performs all mutative operations under the write lock from ToolkitLockedObject.getReadWriteLock() and all read operations under the read lock from the same. Keys are sorted according to the natural ordering of the keys. The keys should implement Comparable

Consult the Toolkit class level docs for more info on behavior regarding destroy.

Trying to add values that are not serializable will throw NotSerializableRuntimeException

Note: Map.Entry pairs returned by methods do not support the Entry.setValue method.


Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Method Summary
 
Methods inherited from interface java.util.SortedMap
comparator, entrySet, firstKey, headMap, keySet, lastKey, subMap, tailMap, values
 
Methods inherited from interface java.util.concurrent.ConcurrentMap
putIfAbsent, remove, replace, replace
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, equals, get, hashCode, isEmpty, put, putAll, remove, size
 
Methods inherited from interface org.terracotta.toolkit.object.ToolkitLockedObject
getReadWriteLock
 
Methods inherited from interface org.terracotta.toolkit.object.ToolkitObject
getName
 
Methods inherited from interface org.terracotta.toolkit.object.Destroyable
destroy, isDestroyed
 



Copyright © 2014 Terracotta, Inc.. All Rights Reserved.