@Override public SingleScenarioArray<T> build() { return new SingleScenarioArray<>( scenarioCount, value); }
/** * Obtains an instance from a single value and scenario count. * <p> * The single value is valid for each scenario. * * @param <T> the type of the value * @param scenarioCount the number of scenarios * @param value the single value valid for all scenarios * @return an instance with the specified value and count */ public static <T> SingleScenarioArray<T> of(int scenarioCount, T value) { return new SingleScenarioArray<>(scenarioCount, value); }