Class AlphaThresholdOption

java.lang.Object
org.kie.internal.conf.AlphaThresholdOption
All Implemented Interfaces:
Serializable, KieBaseOption, Option, SingleValueKieBaseOption, SingleValueOption, SingleValueRuleBaseOption

public class AlphaThresholdOption extends Object implements SingleValueRuleBaseOption
A class for the alpha node hashing threshold configuration.
See Also:
  • Field Details

  • Method Details

    • get

      public static AlphaThresholdOption get(int threshold)
      This is a factory method for this Alpha Threshold configuration. The factory method is a best practice for the case where the actual object construction is changed in the future.
      Parameters:
      threshold - the threshold value for the alpha hashing option
      Returns:
      the actual type safe alpha threshold configuration.
    • getPropertyName

      public String getPropertyName()
      Specified by:
      getPropertyName in interface Option
    • getThreshold

      public int getThreshold()
      Returns the threshold value for alpha hashing
      Returns:
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object