Search in sources :

Example 1 with HashKey

use of org.drools.core.reteoo.CompositeObjectSinkAdapter.HashKey in project drools by kiegroup.

the class CompositeObjectSinkAdapterTest method keyForCheeseCharType.

private HashKey keyForCheeseCharType(char c) {
    Cheese cheese = new Cheese();
    cheese.setCharType(c);
    HashKey hashKey = new CompositeObjectSinkAdapter.HashKey();
    hashKey.setValue(extractor.getIndex(), cheese, extractor);
    return hashKey;
}
Also used : Cheese(org.drools.mvel.model.Cheese) HashKey(org.drools.core.reteoo.CompositeObjectSinkAdapter.HashKey)

Example 2 with HashKey

use of org.drools.core.reteoo.CompositeObjectSinkAdapter.HashKey in project drools by kiegroup.

the class CompositeObjectSinkAdapterTest method keyForCheeseCharObjectType.

private HashKey keyForCheeseCharObjectType(char c) {
    Cheese cheese = new Cheese();
    cheese.setCharObjectType(c);
    HashKey hashKey = new CompositeObjectSinkAdapter.HashKey();
    hashKey.setValue(extractor.getIndex(), cheese, extractor);
    return hashKey;
}
Also used : Cheese(org.drools.mvel.model.Cheese) HashKey(org.drools.core.reteoo.CompositeObjectSinkAdapter.HashKey)

Aggregations

HashKey (org.drools.core.reteoo.CompositeObjectSinkAdapter.HashKey)2 Cheese (org.drools.mvel.model.Cheese)2