/** * Creates a new {@link Builder} based on an existing builder. All properties * will be copied from the specified builder into the newly created builder. * @param base The builder to copy properties from. * @param problemClass The {@link ProblemClass} the new builder should have. * @return The newly constructed {@link Builder}. */ public static Builder builder(AbstractBuilder<?> base, ProblemClass problemClass) { return new Builder(Optional.<AbstractBuilder<?>>of(base), problemClass); }
/** * Creates a new {@link Builder} based on an existing builder. All properties * will be copied from the specified builder into the newly created builder. * @param base The builder to copy properties from. * @param problemClass The {@link ProblemClass} the new builder should have. * @return The newly constructed {@link Builder}. */ public static Builder builder(AbstractBuilder<?> base, ProblemClass problemClass) { return new Builder(Optional.<AbstractBuilder<?>>of(base), problemClass); }
/** * Create a {@link Builder} to construct {@link Scenario} instances. * @param problemClass The problem class of the instance to construct. * @return A new {@link Builder} instance. */ public static Builder builder(ProblemClass problemClass) { return new Builder(problemClass); }
/** * Create a {@link Builder} to construct {@link Scenario} instances. * @param problemClass The problem class of the instance to construct. * @return A new {@link Builder} instance. */ public static Builder builder(ProblemClass problemClass) { return new Builder(problemClass); }