net.sf.beanlib.utils
Class CollectionUtils.SynchronizedSortedMap<K,V>

java.lang.Object
  extended by net.sf.beanlib.utils.CollectionUtils.SynchronizedMap<K,V>
      extended by net.sf.beanlib.utils.CollectionUtils.SynchronizedSortedMap<K,V>
All Implemented Interfaces:
Serializable, Map<K,V>, SortedMap<K,V>
Direct Known Subclasses:
CollectionUtils.SynchronizedSortedRangeMap
Enclosing class:
CollectionUtils

static class CollectionUtils.SynchronizedSortedMap<K,V>
extends CollectionUtils.SynchronizedMap<K,V>
implements SortedMap<K,V>

Basically cloned from and identification to java.util.Collections.SynchronizedSortedMap.

Author:
Joe D. Velopar

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Field Summary
private static long serialVersionUID
           
private  SortedMap<K,V> sm
           
 
Fields inherited from class net.sf.beanlib.utils.CollectionUtils.SynchronizedMap
mutex
 
Constructor Summary
CollectionUtils.SynchronizedSortedMap(SortedMap<K,V> m)
           
CollectionUtils.SynchronizedSortedMap(SortedMap<K,V> m, Object mutex)
           
 
Method Summary
 Comparator<? super K> comparator()
           
 K firstKey()
           
 SortedMap<K,V> headMap(K toKey)
           
 K lastKey()
           
 SortedMap<K,V> subMap(K fromKey, K toKey)
           
 SortedMap<K,V> tailMap(K fromKey)
           
 
Methods inherited from class net.sf.beanlib.utils.CollectionUtils.SynchronizedMap
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, toString, values
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

sm

private SortedMap<K,V> sm
Constructor Detail

CollectionUtils.SynchronizedSortedMap

CollectionUtils.SynchronizedSortedMap(SortedMap<K,V> m)

CollectionUtils.SynchronizedSortedMap

CollectionUtils.SynchronizedSortedMap(SortedMap<K,V> m,
                                      Object mutex)
Method Detail

comparator

public Comparator<? super K> comparator()
Specified by:
comparator in interface SortedMap<K,V>

subMap

public SortedMap<K,V> subMap(K fromKey,
                             K toKey)
Specified by:
subMap in interface SortedMap<K,V>

headMap

public SortedMap<K,V> headMap(K toKey)
Specified by:
headMap in interface SortedMap<K,V>

tailMap

public SortedMap<K,V> tailMap(K fromKey)
Specified by:
tailMap in interface SortedMap<K,V>

firstKey

public K firstKey()
Specified by:
firstKey in interface SortedMap<K,V>

lastKey

public K lastKey()
Specified by:
lastKey in interface SortedMap<K,V>