Fix generics warnings in GaussIntegratorFactory.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1364420 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4bef936067
commit
463896f1cc
|
@ -16,6 +16,8 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.commons.math3.analysis.integration.gauss;
|
package org.apache.commons.math3.analysis.integration.gauss;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
import org.apache.commons.math3.util.Pair;
|
import org.apache.commons.math3.util.Pair;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -27,9 +29,9 @@ import org.apache.commons.math3.util.Pair;
|
||||||
*/
|
*/
|
||||||
public class GaussIntegratorFactory {
|
public class GaussIntegratorFactory {
|
||||||
/** Generator of Gauss-Legendre integrators. */
|
/** Generator of Gauss-Legendre integrators. */
|
||||||
private final BaseRuleFactory legendre = new LegendreRuleFactory();
|
private final BaseRuleFactory<Double> legendre = new LegendreRuleFactory();
|
||||||
/** Generator of Gauss-Legendre integrators. */
|
/** Generator of Gauss-Legendre integrators. */
|
||||||
private final BaseRuleFactory legendreHighPrecision = new LegendreHighPrecisionRuleFactory();
|
private final BaseRuleFactory<BigDecimal> legendreHighPrecision = new LegendreHighPrecisionRuleFactory();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates an integrator of the given order, and whose call to the
|
* Creates an integrator of the given order, and whose call to the
|
||||||
|
@ -96,7 +98,7 @@ public class GaussIntegratorFactory {
|
||||||
* @param numberOfPoints Order of the integration rule.
|
* @param numberOfPoints Order of the integration rule.
|
||||||
* @return the integration nodes and weights.
|
* @return the integration nodes and weights.
|
||||||
*/
|
*/
|
||||||
private static Pair<double[], double[]> getRule(BaseRuleFactory factory,
|
private static Pair<double[], double[]> getRule(BaseRuleFactory<? extends Number> factory,
|
||||||
int numberOfPoints) {
|
int numberOfPoints) {
|
||||||
return factory.getRule(numberOfPoints);
|
return factory.getRule(numberOfPoints);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue