Interface OrderedMapIterator<K,​V>

    • Method Detail

      • hasPrevious

        boolean hasPrevious()
        Checks to see if there is a previous entry that can be iterated to.
        Specified by:
        hasPrevious in interface OrderedIterator<K>
        Returns:
        true if the iterator has a previous element
      • previous

        K previous()
        Gets the previous key from the Map.
        Specified by:
        previous in interface OrderedIterator<K>
        Returns:
        the previous key in the iteration
        Throws:
        java.util.NoSuchElementException - if the iteration is finished