Class UnmodifiableSortedMap<K,​V>

  • All Implemented Interfaces:
    java.io.Serializable, java.util.Map<K,​V>, java.util.SortedMap<K,​V>
    Direct Known Subclasses:
    UnmodifiableTreeMap

    public class UnmodifiableSortedMap<K,​V>
    extends UnmodifiableMap<K,​V>
    implements java.util.SortedMap<K,​V>
    An unmodifiable view of a SortedMap.
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
    • Constructor Summary

      Constructors 
      Constructor Description
      UnmodifiableSortedMap​(java.util.SortedMap<K,​V> delegate)  
    • Constructor Detail

      • UnmodifiableSortedMap

        public UnmodifiableSortedMap​(java.util.SortedMap<K,​V> delegate)
    • Method Detail

      • getSortedMap

        protected java.util.SortedMap<K,​V> getSortedMap()
      • comparator

        public java.util.Comparator<? super K> comparator()
        Specified by:
        comparator in interface java.util.SortedMap<K,​V>
      • subMap

        public java.util.SortedMap<K,​V> subMap​(K fromKey,
                                                     K toKey)
        Specified by:
        subMap in interface java.util.SortedMap<K,​V>
      • headMap

        public java.util.SortedMap<K,​V> headMap​(K toKey)
        Specified by:
        headMap in interface java.util.SortedMap<K,​V>
      • tailMap

        public java.util.SortedMap<K,​V> tailMap​(K fromKey)
        Specified by:
        tailMap in interface java.util.SortedMap<K,​V>
      • firstKey

        public K firstKey()
        Specified by:
        firstKey in interface java.util.SortedMap<K,​V>
      • lastKey

        public K lastKey()
        Specified by:
        lastKey in interface java.util.SortedMap<K,​V>