Class ObjectIterator<O>

java.lang.Object
net.anwiba.commons.lang.collection.ObjectIterator<O>
All Implemented Interfaces:
Iterator<O>

public class ObjectIterator<O> extends Object implements Iterator<O>
  • Constructor Details

    • ObjectIterator

      public ObjectIterator(Supplier<O> supplier)
  • Method Details

    • hasNext

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

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