Class LambdaSalience

  • All Implemented Interfaces:
    java.io.Serializable, org.drools.base.rule.accessor.Salience

    public class LambdaSalience
    extends DynamicAttributeEvaluator<java.lang.Integer>
    implements org.drools.base.rule.accessor.Salience
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from interface org.drools.base.rule.accessor.Salience

        DEFAULT_SALIENCE_VALUE
    • Constructor Summary

      Constructors 
      Constructor Description
      LambdaSalience​(org.drools.model.DynamicValueSupplier<java.lang.Integer> supplier)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getValue()  
      int getValue​(org.kie.api.runtime.rule.Match match, org.kie.api.definition.rule.Rule rule, org.drools.base.base.ValueResolver valueResolver)  
      boolean isDefault()  
      boolean isDynamic()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.drools.base.rule.accessor.Salience

        findDeclarations
    • Constructor Detail

      • LambdaSalience

        public LambdaSalience​(org.drools.model.DynamicValueSupplier<java.lang.Integer> supplier)
    • Method Detail

      • getValue

        public int getValue​(org.kie.api.runtime.rule.Match match,
                            org.kie.api.definition.rule.Rule rule,
                            org.drools.base.base.ValueResolver valueResolver)
        Specified by:
        getValue in interface org.drools.base.rule.accessor.Salience
      • getValue

        public int getValue()
        Specified by:
        getValue in interface org.drools.base.rule.accessor.Salience
      • isDynamic

        public boolean isDynamic()
        Specified by:
        isDynamic in interface org.drools.base.rule.accessor.Salience
      • isDefault

        public boolean isDefault()
        Specified by:
        isDefault in interface org.drools.base.rule.accessor.Salience