Class NamedObjectFactory.ParmNameIterator

java.lang.Object
org.bzdev.util.EncapsulatingIterator<String,String>
org.bzdev.obnaming.NamedObjectFactory.ParmNameIterator
All Implemented Interfaces:
Iterator<String>
Enclosing class:
NamedObjectFactory<F extends NamedObjectFactory<F,NMR,NMD,OBJ>,NMR extends ObjectNamerOps<NMD>,NMD extends NamedObjectOps,OBJ extends NMD>

public static class NamedObjectFactory.ParmNameIterator extends EncapsulatingIterator<String,String>
Iterator returned by the factory method parmNames(). This class is provided due to type-erasure issues.
  • Constructor Details

    • ParmNameIterator

      public ParmNameIterator(Iterator<String> it)
      Constructor.
      Parameters:
      it - the encapsulated iterator
  • Method Details

    • next

      public String next()
      Description copied from class: EncapsulatingIterator
      Return the next element in the iteration. Typically, this method will create a new element of type E and then configure it based on the value returned by a single call to encapsulatedNext().
      Specified by:
      next in interface Iterator<String>
      Specified by:
      next in class EncapsulatingIterator<String,String>
      Returns:
      the next element in the iteration