Class Maps.NavigableKeySet<K,​V>

    • Field Summary

    • Constructor Summary

      Constructors 
      Constructor Description
      NavigableKeySet​(java.util.NavigableMap<K,​V> map)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      K ceiling​(K e)  
      java.util.Iterator<K> descendingIterator()  
      java.util.NavigableSet<K> descendingSet()  
      K floor​(K e)  
      java.util.SortedSet<K> headSet​(K toElement)  
      java.util.NavigableSet<K> headSet​(K toElement, boolean inclusive)  
      K higher​(K e)  
      K lower​(K e)  
      (package private) java.util.NavigableMap<K,​V> map()  
      K pollFirst()  
      K pollLast()  
      java.util.NavigableSet<K> subSet​(K fromElement, boolean fromInclusive, K toElement, boolean toInclusive)  
      java.util.SortedSet<K> subSet​(K fromElement, K toElement)  
      java.util.SortedSet<K> tailSet​(K fromElement)  
      java.util.NavigableSet<K> tailSet​(K fromElement, boolean inclusive)  
      • Methods inherited from class java.util.AbstractSet

        equals, hashCode
      • Methods inherited from class java.util.AbstractCollection

        add, addAll, containsAll, toArray, toArray, toString
      • Methods inherited from class java.lang.Object

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

        parallelStream, removeIf, stream, toArray
      • Methods inherited from interface java.lang.Iterable

        forEach
      • Methods inherited from interface java.util.NavigableSet

        iterator
      • Methods inherited from interface java.util.Set

        add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, size, toArray, toArray
      • Methods inherited from interface java.util.SortedSet

        comparator, first, last, spliterator
    • Constructor Detail

      • NavigableKeySet

        NavigableKeySet​(java.util.NavigableMap<K,​V> map)
    • Method Detail

      • lower

        public K lower​(K e)
        Specified by:
        lower in interface java.util.NavigableSet<K>
      • floor

        public K floor​(K e)
        Specified by:
        floor in interface java.util.NavigableSet<K>
      • ceiling

        public K ceiling​(K e)
        Specified by:
        ceiling in interface java.util.NavigableSet<K>
      • higher

        public K higher​(K e)
        Specified by:
        higher in interface java.util.NavigableSet<K>
      • pollFirst

        public K pollFirst()
        Specified by:
        pollFirst in interface java.util.NavigableSet<K>
      • pollLast

        public K pollLast()
        Specified by:
        pollLast in interface java.util.NavigableSet<K>
      • descendingSet

        public java.util.NavigableSet<K> descendingSet()
        Specified by:
        descendingSet in interface java.util.NavigableSet<K>
      • descendingIterator

        public java.util.Iterator<K> descendingIterator()
        Specified by:
        descendingIterator in interface java.util.NavigableSet<K>
      • subSet

        public java.util.NavigableSet<K> subSet​(K fromElement,
                                                boolean fromInclusive,
                                                K toElement,
                                                boolean toInclusive)
        Specified by:
        subSet in interface java.util.NavigableSet<K>
      • subSet

        public java.util.SortedSet<K> subSet​(K fromElement,
                                             K toElement)
        Specified by:
        subSet in interface java.util.NavigableSet<K>
        Specified by:
        subSet in interface java.util.SortedSet<K>
        Overrides:
        subSet in class Maps.SortedKeySet<K,​V>
      • headSet

        public java.util.NavigableSet<K> headSet​(K toElement,
                                                 boolean inclusive)
        Specified by:
        headSet in interface java.util.NavigableSet<K>
      • headSet

        public java.util.SortedSet<K> headSet​(K toElement)
        Specified by:
        headSet in interface java.util.NavigableSet<K>
        Specified by:
        headSet in interface java.util.SortedSet<K>
        Overrides:
        headSet in class Maps.SortedKeySet<K,​V>
      • tailSet

        public java.util.NavigableSet<K> tailSet​(K fromElement,
                                                 boolean inclusive)
        Specified by:
        tailSet in interface java.util.NavigableSet<K>
      • tailSet

        public java.util.SortedSet<K> tailSet​(K fromElement)
        Specified by:
        tailSet in interface java.util.NavigableSet<K>
        Specified by:
        tailSet in interface java.util.SortedSet<K>
        Overrides:
        tailSet in class Maps.SortedKeySet<K,​V>