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

Class Cardboard

patterns/doubledispatch/Cardboard.java:10–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8import java.util.*;
9
10public class Cardboard extends patterns.trash.Cardboard
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

no outgoing calls

Tested by

no test coverage detected