Class ObjectIterators.UnmodifiableIterator<K>

java.lang.Object
it.unimi.dsi.fastutil.objects.ObjectIterators.UnmodifiableIterator<K>
All Implemented Interfaces:
ObjectIterator<K>, Iterator<K>
Enclosing class:
ObjectIterators

public static class ObjectIterators.UnmodifiableIterator<K>
extends Object
implements ObjectIterator<K>
An unmodifiable wrapper class for iterators.
  • Constructor Details

    • UnmodifiableIterator

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

    • hasNext

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

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