[
https://issues.apache.org/jira/browse/MATH-1596?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gilles Sadowski updated MATH-1596:
----------------------------------
Description:
{{RandomVectorGenerator}} does not bring any added value from the POV of the
API users (as is now Commons Math).
For example, in class {{BaseMultiStartMultivariateOptimizer}} (package
{{o.a.c.math4.legacy.optim}}), the {{RandomVectorGenerator}} constructor's
argument can be replaced by
[{{Supplier<double[]>}}|https://docs.oracle.com/javase/8/docs/api/java/util/function/Supplier.html]
without loss of semantics. [It even provides greater generality.]
was:In class {{BaseMultiStartMultivariateOptimizer}} (package
{{o.a.c.math4.legacy.optim}}), replace the {{RandomVectorGenerator}}
constructor's argument by
[{{Supplier<double[]>}}|https://docs.oracle.com/javase/8/docs/api/java/util/function/Supplier.html].
Labels: api functional remove (was: )
Summary: "RandomVectorGenerator" is-a "Supplier<double[]>" (was:
"Supplier<double[]>" interface in place of "RandomVectorGenerator")
> "RandomVectorGenerator" is-a "Supplier<double[]>"
> -------------------------------------------------
>
> Key: MATH-1596
> URL: https://issues.apache.org/jira/browse/MATH-1596
> Project: Commons Math
> Issue Type: Sub-task
> Reporter: Gilles Sadowski
> Priority: Trivial
> Labels: api, functional, remove
> Fix For: 4.0
>
>
> {{RandomVectorGenerator}} does not bring any added value from the POV of the
> API users (as is now Commons Math).
> For example, in class {{BaseMultiStartMultivariateOptimizer}} (package
> {{o.a.c.math4.legacy.optim}}), the {{RandomVectorGenerator}} constructor's
> argument can be replaced by
> [{{Supplier<double[]>}}|https://docs.oracle.com/javase/8/docs/api/java/util/function/Supplier.html]
> without loss of semantics. [It even provides greater generality.]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)