/** * This is a factory method for this CompositeKeyDepth configuration. * The factory method is a best practice for the case where the * actual object construction is changed in the future. * * @param depth the composite key depth value * * @return the actual type safe CompositeKeyDepth configuration. */ public static CompositeKeyDepthOption get( int depth ) { return new CompositeKeyDepthOption( depth ); }
return CompositeKeyDepthOption.get(legacyOption.getDepth());
return (T) AlphaThresholdOption.get( alphaNodeHashingThreshold ); } else if ( CompositeKeyDepthOption.class.equals( option ) ) { return (T) CompositeKeyDepthOption.get( compositeKeyDepth ); } else if ( ConsequenceExceptionHandlerOption.class.equals( option ) ) { Class< ? extends ConsequenceExceptionHandler> handler;
setAlphaNodeHashingThreshold(((AlphaThresholdOption) option).getThreshold()); } else if ( option instanceof CompositeKeyDepthOption ) { setCompositeKeyDepth(((CompositeKeyDepthOption) option).getDepth()); } else if ( option instanceof ConsequenceExceptionHandlerOption ) { setConsequenceExceptionHandler(((ConsequenceExceptionHandlerOption) option).getHandler().getName());
return org.drools.conf.CompositeKeyDepthOption.get(kieOption.getDepth());
/** * This is a factory method for this CompositeKeyDepth configuration. * The factory method is a best practice for the case where the * actual object construction is changed in the future. * * @param depth the composite key depth value * * @return the actual type safe CompositeKeyDepth configuration. */ public static CompositeKeyDepthOption get( int depth ) { return new CompositeKeyDepthOption( depth ); }
/** * This is a factory method for this CompositeKeyDepth configuration. * The factory method is a best practice for the case where the * actual object construction is changed in the future. * * @param depth the composite key depth value * * @return the actual type safe CompositeKeyDepth configuration. */ public static CompositeKeyDepthOption get( int depth ) { return new CompositeKeyDepthOption( depth ); }