Class TreeBidiMap.InverseViewMapIterator

    • Constructor Detail

      • InverseViewMapIterator

        public InverseViewMapIterator​(TreeBidiMap.DataElement orderType)
        Create a new TreeBidiMap.InverseViewMapIterator.
    • Method Detail

      • getKey

        public V getKey()
        Description copied from interface: MapIterator
        Gets the current key, which is the key returned by the last call to next().
        Specified by:
        getKey in interface MapIterator<V extends java.lang.Comparable<V>,​K extends java.lang.Comparable<K>>
        Returns:
        the current key
      • getValue

        public K getValue()
        Description copied from interface: MapIterator
        Gets the current value, which is the value associated with the last key returned by next().
        Specified by:
        getValue in interface MapIterator<V extends java.lang.Comparable<V>,​K extends java.lang.Comparable<K>>
        Returns:
        the current value
      • setValue

        public K setValue​(K obj)
        Description copied from interface: MapIterator
        Sets the value associated with the current key (optional operation).
        Specified by:
        setValue in interface MapIterator<V extends java.lang.Comparable<V>,​K extends java.lang.Comparable<K>>
        Parameters:
        obj - the new value
        Returns:
        the previous value
      • next

        public V next()
        Description copied from interface: MapIterator
        Gets the next key from the Map.
        Specified by:
        next in interface java.util.Iterator<V extends java.lang.Comparable<V>>
        Specified by:
        next in interface MapIterator<V extends java.lang.Comparable<V>,​K extends java.lang.Comparable<K>>
        Returns:
        the next key in the iteration
      • previous

        public V previous()
        Description copied from interface: OrderedMapIterator
        Gets the previous key from the Map.
        Specified by:
        previous in interface OrderedIterator<V extends java.lang.Comparable<V>>
        Specified by:
        previous in interface OrderedMapIterator<V extends java.lang.Comparable<V>,​K extends java.lang.Comparable<K>>
        Returns:
        the previous key in the iteration