public static ReturnValueBuilder forPlugin ( final String name , final ThresholdsEvaluator thr ) { if ( thr != null ) { return new ReturnValueBuilder ( name , thr ) ; } return new ReturnValueBuilder ( name , new ThresholdsEvaluatorBuilder ( ) . create ( ) ) ; }
Constructs the object with the given threshold evaluator .