Class ObjectIterators.UnmodifiableBidirectionalIterator<K>

    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<K>
      • hasPrevious

        public boolean hasPrevious()
        Description copied from interface: BidirectionalIterator
        Returns whether there is a previous element.
        Specified by:
        hasPrevious in interface BidirectionalIterator<K>
        Returns:
        whether there is a previous element.
        See Also:
        ListIterator.hasPrevious()
      • next

        public K next()
        Specified by:
        next in interface java.util.Iterator<K>
      • previous

        public K previous()
        Description copied from interface: BidirectionalIterator
        Returns the previous element from the collection.
        Specified by:
        previous in interface BidirectionalIterator<K>
        Returns:
        the previous element from the collection.
        See Also:
        ListIterator.previous()
      • forEachRemaining

        public void forEachRemaining​(java.util.function.Consumer<? super K> action)
        Specified by:
        forEachRemaining in interface java.util.Iterator<K>