/*
 * Decompiled with CFR 0_110.
 * 
 * Could not load the following classes:
 *  java.lang.Object
 *  java.util.Enumeration
 *  javax.swing.tree.TreeNode
 */
package org.dom4j.swing;

import java.util.Enumeration;
import javax.swing.tree.TreeNode;
import org.dom4j.swing.BranchTreeNode;

class BranchTreeNode$1
implements Enumeration {
    private int index;
    private final BranchTreeNode this$0;

    BranchTreeNode$1(BranchTreeNode branchTreeNode) {
        this.this$0 = branchTreeNode;
        this.index = -1;
    }

    public boolean hasMoreElements() {
        if (1 + this.index < this.this$0.getChildCount()) {
            return true;
        }
        return false;
    }

    public Object nextElement() {
        int n;
        BranchTreeNode branchTreeNode = this.this$0;
        this.index = n = 1 + this.index;
        return branchTreeNode.getChildAt(n);
    }
}

