Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.drools.impl.adapters;
 
 import  org.kie.internal.builder.KnowledgeBuilderResult;
 
 import static org.drools.impl.adapters.AdapterUtil.adaptResultSeverity;
 
    private final KnowledgeBuilderResult delegate;
    public KnowledgeBuilderResultAdapter(KnowledgeBuilderResult delegate) {
        this. = delegate;
    }
    public ResultSeverity getSeverity() {
        return adaptResultSeverity(.getSeverity());
    }
    public String getMessage() {
        return .getMessage();
    }
    public int[] getLines() {
        return .getLines();
    }
    public Resource getResource() {
        return new ResourceAdapter(.getResource());
    }
    @Override
    public int hashCode() {
        return .hashCode();
    }
    @Override
    public boolean equals(Object obj) {
        return obj instanceof KnowledgeBuilderResultAdapter && .equals(((KnowledgeBuilderResultAdapter)obj).);
    }
New to GrepCode? Check out our FAQ X