Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.drools.conf;

An Enum for Index Precedence option. drools.indexPrecedence = <pattern|equality> When creating indexes gives precedence to the equality constraints (default) or to the first indexable constraint in the pattern. DEFAULT = equality
    PATTERN_ORDER("pattern"),
    EQUALITY_PRIORITY("equality");

    
The property name for the index precedence option
    public static final String PROPERTY_NAME = "drools.indexPrecedence";
    private String             string;
        this. = mode;
    }

    
    public String getPropertyName() {
        return ;
    }
    public String getValue() {
        return ;
    }
    public String toString() {
        return "IndexPrecedenceOption( "+" )";
    }
    public String toExternalForm() {
        return this.;
    }
    public static IndexPrecedenceOption determineIndexPrecedence(String mode) {
        if ( .getValue().equalsIgnoreCasemode ) ) {
            return ;
        } else if ( .getValue().equalsIgnoreCasemode ) ) {
            return ;
        }
        throw new IllegalArgumentException"Illegal enum value '" + mode + "' for IndexPrecedence" );
    }
New to GrepCode? Check out our FAQ X