Class SortedMapAdapter<K,​V>

  • All Implemented Interfaces:
    java.util.Map<K,​V>, java.util.SortedMap<K,​V>

    public class SortedMapAdapter<K,​V>
    extends MapAdapter<K,​V>
    implements java.util.SortedMap<K,​V>
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.util.AbstractMap

        java.util.AbstractMap.SimpleEntry<K extends java.lang.Object,​V extends java.lang.Object>, java.util.AbstractMap.SimpleImmutableEntry<K extends java.lang.Object,​V extends java.lang.Object>
      • Nested classes/interfaces inherited from interface java.util.Map

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

      Fields 
      Modifier and Type Field Description
      private SortedMap<K,​V> map  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Comparator<? super K> comparator()  
      K firstKey()  
      java.util.SortedMap<K,​V> headMap​(K toKey)  
      K lastKey()  
      java.util.SortedMap<K,​V> subMap​(K fromKey, K toKey)  
      java.util.SortedMap<K,​V> tailMap​(K fromKey)  
      • Methods inherited from class java.util.AbstractMap

        clone, equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Map

        clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, equals, forEach, get, getOrDefault, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size
      • Methods inherited from interface java.util.SortedMap

        entrySet, keySet, values
    • Constructor Detail

      • SortedMapAdapter

        public SortedMapAdapter​(SortedMap<K,​V> map)
    • Method Detail

      • comparator

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

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

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

        @NotNull
        public java.util.SortedMap<K,​V> tailMap​(@NotNull
                                                      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>