Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.drools.impl.adapters;
 
 import  org.kie.api.runtime.Environment;
 
 public class EnvironmentAdapter implements org.drools.runtime.Environment, org.kie.api.runtime.Environment {
 
     public final Environment delegate;
 
     public EnvironmentAdapter(Environment delegate) {
        this. = delegate;
    }
    public Object get(String identifier) {
        return .get(identifier);
    }
    public void set(String identifierObject object) {
        .set(identifierobject);
    }
    @Override
    public void setDelegate(Environment delegate) {
        setDelegate((org.drools.runtime.Environmentnew EnvironmentAdapter(delegate));
    }
    public void setDelegate(org.drools.runtime.Environment delegate) {
        this..setDelegate(((EnvironmentAdapter)delegate).);
    }
    public Environment getDelegate() {
        return ;
    }
    @Override
    public int hashCode() {
        return .hashCode();
    }
    @Override
    public boolean equals(Object obj) {
        return obj instanceof EnvironmentAdapter && .equals(((EnvironmentAdapter)obj).);
    }
New to GrepCode? Check out our FAQ X