return (T) PermGenThresholdOption.get( permGenThreshold ); } else if ( AlphaThresholdOption.class.equals( option ) ) { return (T) AlphaThresholdOption.get( alphaNodeHashingThreshold ); } else if ( CompositeKeyDepthOption.class.equals( option ) ) { return (T) CompositeKeyDepthOption.get( compositeKeyDepth );
public static SingleValueKnowledgeBaseOption adaptOption(SingleValueKieBaseOption option) { if (option instanceof AlphaThresholdOption) { AlphaThresholdOption kieOption = (AlphaThresholdOption)option; return org.drools.conf.AlphaThresholdOption.get(kieOption.getThreshold());