Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/BruceEckel/OnJava8-Examples
/ minima
Method
minima
patterns/strategy/StrategyPattern2.java:25–27 ·
view source on GitHub ↗
(List<Double> line)
Source
from the content-addressed store, hash-verified
23
algorithm = (line) -> Arrays.asList(5.5, 6.6);
24
}
25
List<Double> minima(List<Double> line) {
26
return
algorithm.apply(line);
27
}
28
}
29
30
public
class
StrategyPattern2 {
Callers
1
main
Method · 0.95
Calls
1
apply
Method · 0.65
Tested by
no test coverage detected