Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.drools.impl.adapters;
 
 import java.util.List;
 
 import  org.kie.api.runtime.process.NodeInstanceContainer;
 
	public NodeInstanceContainer delegate;
	public NodeInstanceContainerAdapter(NodeInstanceContainer delegate) {
		this. = delegate;
	}
	public NodeInstanceContainer getDelegate() {
		return ;
	}
		Collection<org.kie.api.runtime.process.NodeInstance> nodeInstances = .getNodeInstances();
		if (nodeInstances == null) {
			return null;
		}
		List<NodeInstanceresult = new ArrayList<NodeInstance>();
		for (org.kie.api.runtime.process.NodeInstance nodeInstancenodeInstances) {
			result.add(new NodeInstanceAdapter(nodeInstance));
		}
		return result;
	}
	public NodeInstance getNodeInstance(long nodeInstanceId) {
		org.kie.api.runtime.process.NodeInstance nodeInstance = .getNodeInstance(nodeInstanceId);
		if (nodeInstance == null) {
			return null;
else {
			return new NodeInstanceAdapter(nodeInstance);
		}
	}
    @Override
    public int hashCode() {
        return .hashCode();
    }
    @Override
    public boolean equals(Object obj) {
        return obj instanceof NodeInstanceContainerAdapter && .equals(((NodeInstanceContainerAdapter)obj).);
    }
New to GrepCode? Check out our FAQ X