/** * This is a factory method for this Max Threads configuration. * The factory method is a best practice for the case where the * actual object construction is changed in the future. * * @param threshold the maximum number of threads for partition evaluation * * @return the actual type safe max threads configuration. */ public static MaxThreadsOption get( int threshold ) { return new MaxThreadsOption( threshold ); }