⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fastvector$fastvectorenumeration.java

📁 用java实现的数据挖掘的关联规则的Apriori
💻 JAVA
字号:
// Decompiled by DJ v3.9.9.91 Copyright 2005 Atanas Neshkov  Date: 2007-5-16 21:11:32
// Home Page : http://members.fortunecity.com/neshkov/dj.html  - Check often for new version!
// Decompiler options: packimports(3) 
// Source File Name:   FastVector.java

package apriori;

import java.util.Enumeration;

// Referenced classes of package apriori:
//            FastVector

public class FastVector$FastVectorEnumeration
    implements Enumeration
{

    public final boolean hasMoreElements()
    {
        return m_Counter < m_Vector.size();
    }

    public final Object nextElement()
    {
        Object obj = m_Vector.elementAt(m_Counter);
        m_Counter++;
        if(m_Counter == m_SpecialElement)
            m_Counter++;
        return obj;
    }

    private int m_Counter;
    private FastVector m_Vector;
    private int m_SpecialElement;

    public FastVector$FastVectorEnumeration(FastVector fastvector1)
    {
        m_Counter = 0;
        m_Vector = fastvector1;
        m_SpecialElement = -1;
    }

    public FastVector$FastVectorEnumeration(FastVector fastvector1, int i)
    {
        m_Vector = fastvector1;
        m_SpecialElement = i;
        if(i == 0)
            m_Counter = 1;
        else
            m_Counter = 0;
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -