Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/BruceEckel/OnJava8-Examples
/ addToBin
Method
addToBin
patterns/doubledispatch/Cardboard.java:13–17 ·
view source on GitHub ↗
(List<TypedBin> tbins)
Source
from the content-addressed store, hash-verified
11
implements TypedBinMember {
12
public
Cardboard(double wt) { super(wt); }
13
@Override
14
public
boolean addToBin(List<TypedBin> tbins) {
15
return
tbins.stream()
16
.anyMatch(tb -> tb.add(this));
17
}
18
}
Callers
nothing calls this directly
Calls
2
stream
Method · 0.45
add
Method · 0.45
Tested by
no test coverage detected