Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.drools.impl.adapters;
 
 import  org.kie.internal.builder.KnowledgeBuilderConfiguration;
 
 import java.util.Set;
 
import static org.drools.impl.adapters.AdapterUtil.adaptMultiValueBuilderOption;
import static org.drools.impl.adapters.AdapterUtil.adaptOption;
import static org.drools.impl.adapters.AdapterUtil.adaptSingleValueBuilderOption;
    private final KnowledgeBuilderConfiguration delegate;
    public KnowledgeBuilderConfigurationAdapter(KnowledgeBuilderConfiguration delegate) {
        this. = delegate;
    }
    public <T extends KnowledgeBuilderOptionvoid setOption(T option) {
        .setOption(adaptOption(option));
    }
    public <T extends SingleValueKnowledgeBuilderOption> T getOption(Class<T> option) {
        return (T).getOption(adaptSingleValueBuilderOption(option));
    }
    public <T extends MultiValueKnowledgeBuilderOption> T getOption(Class<T> optionString key) {
        return (T).getOption(adaptMultiValueBuilderOption(option), key);
    }
    public <T extends MultiValueKnowledgeBuilderOptionSet<StringgetOptionKeys(Class<T> option) {
        return .getOptionKeys(adaptMultiValueBuilderOption(option));
    }
    public void setProperty(String nameString value) {
        .setProperty(namevalue);
    }
    public String getProperty(String name) {
        return .getProperty(name);
    }
    public KnowledgeBuilderConfiguration getDelegate() {
        return ;
    }
    @Override
    public int hashCode() {
        return .hashCode();
    }
    @Override
    public boolean equals(Object obj) {
        return obj instanceof KnowledgeBuilderConfigurationAdapter && .equals(((KnowledgeBuilderConfigurationAdapter)obj).);
    }
New to GrepCode? Check out our FAQ X