Class IndexedTreeMap.AscendingSubMap<K,​V>

  • Type Parameters:
    K - key value type
    V - value value type
    All Implemented Interfaces:
    java.io.Serializable, java.util.Map<K,​V>, java.util.NavigableMap<K,​V>, java.util.SortedMap<K,​V>
    Enclosing class:
    IndexedTreeMap<K,​V>

    protected static final class IndexedTreeMap.AscendingSubMap<K,​V>
    extends java.util.AbstractMap<K,​V>
    See Also:
    Serialized Form
    • Field Detail

      • lo

        protected final K lo
        Endpoints are represented as triples (fromStart, lo, loInclusive) and (toEnd, hi, hiInclusive). If fromStart is true, then the low (absolute) bound is the start of the backing map, and the other values are ignored. Otherwise, if loInclusive is true, lo is the inclusive bound, else lo is the exclusive bound. Similarly for the upper bound.
      • hi

        protected final K hi
        Endpoints are represented as triples (fromStart, lo, loInclusive) and (toEnd, hi, hiInclusive). If fromStart is true, then the low (absolute) bound is the start of the backing map, and the other values are ignored. Otherwise, if loInclusive is true, lo is the inclusive bound, else lo is the exclusive bound. Similarly for the upper bound.
      • fromStart

        protected final boolean fromStart
      • toEnd

        protected final boolean toEnd
      • loInclusive

        protected final boolean loInclusive
      • hiInclusive

        protected final boolean hiInclusive
      • descendingMapView

        protected java.util.NavigableMap<K,​V> descendingMapView
      • navigableKeySetView

        protected de.gsi.dataset.utils.trees.IndexedTreeMap.KeySet<K> navigableKeySetView
    • Method Detail

      • comparator

        public java.util.Comparator<? super K> comparator()
      • descendingKeyIterator

        public java.util.Iterator<K> descendingKeyIterator()
        Returns:
        descending iterator from the perspective of this sub-map
      • descendingMap

        public java.util.NavigableMap<K,​V> descendingMap()
      • entrySet

        public java.util.Set<java.util.Map.Entry<K,​V>> entrySet()
        Specified by:
        entrySet in interface java.util.Map<K,​V>
        Specified by:
        entrySet in interface java.util.SortedMap<K,​V>
        Specified by:
        entrySet in class java.util.AbstractMap<K,​V>
      • headMap

        public java.util.NavigableMap<K,​V> headMap​(K toKey,
                                                         boolean inclusive)
      • keyIterator

        public java.util.Iterator<K> keyIterator()
        Returns:
        ascending iterator from the perspective of this sub-map
      • subMap

        public java.util.NavigableMap<K,​V> subMap​(K fromKey,
                                                        boolean fromInclusive,
                                                        K toKey,
                                                        boolean toInclusive)
      • tailMap

        public java.util.NavigableMap<K,​V> tailMap​(K fromKey,
                                                         boolean inclusive)
      • absHighFence

        public final IndexedTreeMap.Entry<K,​V> absHighFence()
        Returns the absolute high fence for ascending traversal
        Returns:
        entry
      • absLowFence

        public final IndexedTreeMap.Entry<K,​V> absLowFence()
        Return the absolute low fence for descending traversal
        Returns:
        entry
      • ceilingEntry

        public final java.util.Map.Entry<K,​V> ceilingEntry​(K key)
        Specified by:
        ceilingEntry in interface java.util.NavigableMap<K,​V>
      • ceilingKey

        public final K ceilingKey​(K key)
        Specified by:
        ceilingKey in interface java.util.NavigableMap<K,​V>
      • containsKey

        public final boolean containsKey​(java.lang.Object key)
        Specified by:
        containsKey in interface java.util.Map<K,​V>
        Overrides:
        containsKey in class java.util.AbstractMap<K,​V>
      • descendingKeySet

        public java.util.NavigableSet<K> descendingKeySet()
        Specified by:
        descendingKeySet in interface java.util.NavigableMap<K,​V>
      • firstEntry

        public final java.util.Map.Entry<K,​V> firstEntry()
        Specified by:
        firstEntry in interface java.util.NavigableMap<K,​V>
      • firstKey

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

        public final java.util.Map.Entry<K,​V> floorEntry​(K key)
        Specified by:
        floorEntry in interface java.util.NavigableMap<K,​V>
      • floorKey

        public final K floorKey​(K key)
        Specified by:
        floorKey in interface java.util.NavigableMap<K,​V>
      • get

        public final V get​(java.lang.Object key)
        Specified by:
        get in interface java.util.Map<K,​V>
        Overrides:
        get in class java.util.AbstractMap<K,​V>
      • headMap

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

        public final java.util.Map.Entry<K,​V> higherEntry​(K key)
        Specified by:
        higherEntry in interface java.util.NavigableMap<K,​V>
      • higherKey

        public final K higherKey​(K key)
        Specified by:
        higherKey in interface java.util.NavigableMap<K,​V>
      • inClosedRange

        public final boolean inClosedRange​(java.lang.Object key)
      • inRange

        public final boolean inRange​(java.lang.Object key)
      • inRange

        public final boolean inRange​(java.lang.Object key,
                                     boolean inclusive)
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface java.util.Map<K,​V>
        Overrides:
        isEmpty in class java.util.AbstractMap<K,​V>
      • keySet

        public final java.util.Set<K> keySet()
        Specified by:
        keySet in interface java.util.Map<K,​V>
        Specified by:
        keySet in interface java.util.SortedMap<K,​V>
        Overrides:
        keySet in class java.util.AbstractMap<K,​V>
      • lastEntry

        public final java.util.Map.Entry<K,​V> lastEntry()
        Specified by:
        lastEntry in interface java.util.NavigableMap<K,​V>
      • lastKey

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

        public final java.util.Map.Entry<K,​V> lowerEntry​(K key)
        Specified by:
        lowerEntry in interface java.util.NavigableMap<K,​V>
      • lowerKey

        public final K lowerKey​(K key)
        Specified by:
        lowerKey in interface java.util.NavigableMap<K,​V>
      • navigableKeySet

        public final java.util.NavigableSet<K> navigableKeySet()
        Specified by:
        navigableKeySet in interface java.util.NavigableMap<K,​V>
      • pollFirstEntry

        public final java.util.Map.Entry<K,​V> pollFirstEntry()
        Specified by:
        pollFirstEntry in interface java.util.NavigableMap<K,​V>
      • pollLastEntry

        public final java.util.Map.Entry<K,​V> pollLastEntry()
        Specified by:
        pollLastEntry in interface java.util.NavigableMap<K,​V>
      • put

        public final V put​(K key,
                           V value)
        Specified by:
        put in interface java.util.Map<K,​V>
        Overrides:
        put in class java.util.AbstractMap<K,​V>
      • remove

        public final V remove​(java.lang.Object key)
        Specified by:
        remove in interface java.util.Map<K,​V>
        Overrides:
        remove in class java.util.AbstractMap<K,​V>
      • size

        public int size()
        Specified by:
        size in interface java.util.Map<K,​V>
        Overrides:
        size in class java.util.AbstractMap<K,​V>
      • subMap

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

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

        public final boolean tooHigh​(java.lang.Object key)
      • tooLow

        public final boolean tooLow​(java.lang.Object key)