/*
 * Decompiled with CFR 0_110.
 * 
 * Could not load the following classes:
 *  java.lang.Object
 *  java.lang.String
 *  java.lang.UnsupportedOperationException
 *  java.util.Iterator
 */
package org.dom4j.tree;

import java.util.Iterator;

public class SingleIterator
implements Iterator {
    private boolean first = true;
    private Object object;

    public SingleIterator(Object object) {
        this.object = object;
    }

    public boolean hasNext() {
        return this.first;
    }

    public Object next() {
        Object object = this.object;
        this.object = null;
        this.first = false;
        return object;
    }

    public void remove() {
        throw new UnsupportedOperationException("remove() is not supported by this iterator");
    }
}

