Class ObjectIterators.UnmodifiableIterator<K>

  • All Implemented Interfaces:
    ObjectIterator<K>, java.util.Iterator<K>
    Enclosing class:
    ObjectIterators

    public static class ObjectIterators.UnmodifiableIterator<K>
    extends java.lang.Object
    implements ObjectIterator<K>
    An unmodifiable wrapper class for iterators.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()  
      K next()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

        forEachRemaining, remove
    • Constructor Detail

      • UnmodifiableIterator

        public UnmodifiableIterator​(ObjectIterator<K> i)
    • Method Detail

      • hasNext

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

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