Gilles created NUMBERS-42:
-----------------------------
Summary: Factory methods
Key: NUMBERS-42
URL: https://issues.apache.org/jira/browse/NUMBERS-42
Project: Commons Numbers
Issue Type: New Feature
Reporter: Gilles
Priority: Trivial
Fix For: 1.0
Wherever applicable, provide {{of}} factory methods.
For example, in "complex.java":
{code}
public Complex ofCartesian(double re, double im) { /*... */ }
public Complex ofPolar(double r, double theta) { /*... */ }
{code}
To be considered: make the constructors private (or protected).
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)