Class TracerConfigNamespaceContextImpl.Iterator

java.lang.Object
de.christofreichardt.diagnosis.TracerConfigNamespaceContextImpl.Iterator
All Implemented Interfaces:
Iterator<String>
Enclosing class:
TracerConfigNamespaceContextImpl

public class TracerConfigNamespaceContextImpl.Iterator extends Object implements Iterator<String>
Simplified implementation of an iterator.
  • Constructor Details

    • Iterator

      public Iterator()
  • Method Details

    • hasNext

      public boolean hasNext()
      Returns true if and only if next() hasn't been called yet.
      Specified by:
      hasNext in interface Iterator<String>
      Returns:
      true when called once then false.
    • remove

      public void remove()
      Unsupported operation.
      Specified by:
      remove in interface Iterator<String>
    • next

      public String next()
      Returns the next prefix, that is the first call will return "dns" and then a NoSuchElementException will be raised.
      Specified by:
      next in interface Iterator<String>
      Returns:
      the next prefix