MCPcopy 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

11implements 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

streamMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected