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

📄 tuplematches.java

📁 drools 一个开放源码的规则引擎
💻 JAVA
字号:
package org.drools.reteoo;

import java.util.ArrayList;
import java.util.List;

class TupleMatches
{

    private final ReteTuple tuple;
    private final List      matches;

    TupleMatches(ReteTuple tuple)
    {
        super( );
        this.tuple = tuple;
        this.matches = new ArrayList( );
    }

    TupleKey getKey()
    {
        return this.tuple.getKey( );
    }

    ReteTuple getTuple()
    {
        return this.tuple;
    }

    List getMatches()
    {
        return this.matches;
    }

    void addMatch(FactHandleImpl handle)
    {
        this.matches.add( handle );
    }
    
    void removeMatch(FactHandleImpl handle)
    {
        this.matches.remove( handle );
    }
    

    boolean matched(FactHandleImpl handle)
    {
        return this.matches.contains( handle );
    }
}

⌨️ 快捷键说明

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