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

📄 searchwindow$searchwindowiterator.java

📁 用java写的DTW程序组合
💻 JAVA
字号:
// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi 
// Source File Name:   SearchWindow.java

package dtw;

import java.util.*;
import matrix.ColMajorCell;

// Referenced classes of package dtw:
//            SearchWindow

private final class SearchWindowIterator
    implements Iterator
{

    private int currentI;
    private int currentJ;
    private final SearchWindow window;
    private boolean hasMoreElements;
    private final int expectedModCount;

    public boolean hasNext()
    {
        return hasMoreElements;
    }

    public Object next()
    {
        if(SearchWindow.access$100(SearchWindow.this) != expectedModCount)
            throw new ConcurrentModificationException();
        if(!hasMoreElements)
            throw new NoSuchElementException();
        ColMajorCell cell = new ColMajorCell(currentI, currentJ);
        if(++currentJ > window.maxJforI(currentI))
            if(++currentI <= window.maxI())
                currentJ = window.minJforI(currentI);
            else
                hasMoreElements = false;
        return cell;
    }

    public void remove()
    {
        throw new UnsupportedOperationException();
    }

    private SearchWindowIterator(SearchWindow w)
    {
        window = w;
        hasMoreElements = window.size() > 0;
        currentI = window.minI();
        currentJ = window.minJ();
        expectedModCount = SearchWindow.access$100(w);
    }

    SearchWindowIterator(SearchWindow x1, _cls1 x2)
    {
        this(x1);
    }
}

⌨️ 快捷键说明

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