📄 tuplematches.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 + -