bb.util
Class Unmodifiables.UnmodifiableSortedMap<K,V>

java.lang.Object
  extended by bb.util.Unmodifiables.UnmodifiableMap<K,V>
      extended by bb.util.Unmodifiables.UnmodifiableSortedMap<K,V>
All Implemented Interfaces:
Serializable, Map<K,V>, SortedMap<K,V>
Enclosing class:
Unmodifiables

static class Unmodifiables.UnmodifiableSortedMap<K,V>
extends Unmodifiables.UnmodifiableMap<K,V>
implements SortedMap<K,V>, Serializable

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class bb.util.Unmodifiables.UnmodifiableMap
Unmodifiables.UnmodifiableMap.UnmodifiableEntrySet<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Field Summary
private static long serialVersionUID
           
private  SortedMap<K,? extends V> sm
           
 
Constructor Summary
Unmodifiables.UnmodifiableSortedMap(SortedMap<K,? extends V> m)
           
 
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 bb.util.Unmodifiables.UnmodifiableMap
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.SortedMap
entrySet, keySet, values
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, equals, get, hashCode, isEmpty, put, putAll, remove, size
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

sm

private final SortedMap<K,? extends V> sm
Constructor Detail

Unmodifiables.UnmodifiableSortedMap

Unmodifiables.UnmodifiableSortedMap(SortedMap<K,? extends V> m)
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>