Interface UnmodSortedCollection<E>

    • Method Detail

      • iterator

        UnmodSortedIterator<E> iterator()
        An unmodifiable ordered iterator An unmodifiable iterator A one-time use, mutable, not-thread-safe way to get each value of the underling collection in turn. I experimented with various thread-safe alternatives, but the JVM is optimized around iterators so this is the lowest common denominator of collection iteration, even though iterators are inherently mutable.
        Specified by:
        iterator in interface java.util.Collection<E>
        Specified by:
        iterator in interface java.lang.Iterable<E>
        Specified by:
        iterator in interface UnmodCollection<E>
        Specified by:
        iterator in interface UnmodIterable<E>
        Specified by:
        iterator in interface UnmodSortedIterable<E>