Class Iterators.Singleton<T>

java.lang.Object
com.sun.xml.xsom.impl.scd.Iterators.ReadOnly<T>
com.sun.xml.xsom.impl.scd.Iterators.Singleton<T>
All Implemented Interfaces:
Iterator<T>
Enclosing class:
Iterators

static final class Iterators.Singleton<T> extends Iterators.ReadOnly<T>
Iterator that returns a single (or no) value.
  • Field Details

    • next

      private T next
  • Constructor Details

    • Singleton

      Singleton(T next)
  • Method Details

    • hasNext

      public boolean hasNext()
    • next

      public T next()