class IgniteSingletonIterator<T> extends GridCloseableIteratorAdapter<T> {
    /** */
    private static final long serialVersionUID = 0L;

    /** */
    private final T val;

    /** */
    private boolean hasNext = true;

    /** */
    public IgniteSingletonIterator(T val) {
        this.val = val;
    }

    /** {@inheritDoc} */
    @Override protected boolean onHasNext() throws IgniteCheckedException {
        return hasNext;
    }

    /** {@inheritDoc} */
    @Override protected T onNext() throws IgniteCheckedException {<FILL_FUNCTION_BODY>}
}

        if (!hasNext)
            throw new NoSuchElementException();

        hasNext = false;

        return val;
    
<methods>public non-sealed void <init>() ,public final void close() throws org.apache.ignite.IgniteCheckedException,public final boolean hasNextX() throws org.apache.ignite.IgniteCheckedException,public boolean isClosed() ,public final T nextX() throws org.apache.ignite.IgniteCheckedException,public final void removeX() throws org.apache.ignite.IgniteCheckedException<variables>private boolean closed,private static final long serialVersionUID