Class SingletonIterator<T>

java.lang.Object
org.codehaus.stax2.ri.SingletonIterator<T>
All Implemented Interfaces:
Iterator<T>

public class SingletonIterator<T> extends Object implements Iterator<T>
Simple read-only iterator that iterators over one specific item, passed in as constructor argument.
  • Field Details

    • _value

      private final T _value
    • _done

      private boolean _done
  • Constructor Details

    • SingletonIterator

      @Deprecated public SingletonIterator(T value)
      Deprecated.
  • Method Details