MCPcopy Index your code
hub / github.com/BruceEckel/OnJava8-Examples / minima

Method minima

patterns/strategy/StrategyPattern.java:42–44  ·  view source on GitHub ↗
(List<Double> line)

Source from the content-addressed store, hash-verified

40 this.strategy = strategy;
41 }
42 List<Double> minima(List<Double> line) {
43 return strategy.algorithm.apply(line);
44 }
45 void changeAlgorithm(FindMinima newAlgorithm) {
46 strategy = newAlgorithm;
47 }

Callers 1

mainMethod · 0.95

Calls 1

applyMethod · 0.65

Tested by

no test coverage detected