Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.drools.impl.adapters;
 
import  org.kie.internal.runtime.StatefulKnowledgeSession;
import static org.drools.impl.adapters.FactHandleAdapter.adaptFactHandles;
import static org.drools.impl.adapters.ProcessAdapter.adaptProcesses;
import static org.drools.impl.adapters.ProcessInstanceAdapter.adaptProcessInstances;
    public StatefulKnowledgeSessionAdapter(StatefulKnowledgeSession delegate) {
        super(delegate);
    }
    public int getId() {
        return ((StatefulKnowledgeSession)).getId();
    }
    public void dispose() {
        ((StatefulKnowledgeSession)).dispose();
    }
    public <T> T execute(Command<T> command) {
        throw new UnsupportedOperationException("This operation is no longer supported");
    }
    public int fireAllRules() {
        return ((StatefulKnowledgeSession)).fireAllRules();
    }
    public int fireAllRules(int max) {
        return ((StatefulKnowledgeSession)).fireAllRules(max);
    }
    public int fireAllRules(AgendaFilter agendaFilter) {
        return ((StatefulKnowledgeSession)).fireAllRules(new AgendaFilterAdapter(agendaFilter));
    }
    public int fireAllRules(AgendaFilter agendaFilterint max) {
        return ((StatefulKnowledgeSession)).fireAllRules(new AgendaFilterAdapter(agendaFilter), max);
    }
    public void fireUntilHalt() {
        ((StatefulKnowledgeSession)).fireUntilHalt();
    }
    public void fireUntilHalt(AgendaFilter agendaFilter) {
        ((StatefulKnowledgeSession)).fireUntilHalt(new AgendaFilterAdapter(agendaFilter));
    }
    public static List<org.drools.runtime.StatefulKnowledgeSessionadaptStatefulKnowledgeSession(Collection<org.kie.internal.runtime.StatefulKnowledgeSession> sessions) {
        for (org.kie.internal.runtime.StatefulKnowledgeSession session : sessions) {
            result.add(new StatefulKnowledgeSessionAdapter(session));
        }
        return result;
    }
    @Override
    public int hashCode() {
        return .hashCode();
    }
    @Override
    public boolean equals(Object obj) {
        return obj instanceof StatefulKnowledgeSessionAdapter && .equals(((StatefulKnowledgeSessionAdapter)obj).);
    }
New to GrepCode? Check out our FAQ X