MCPcopy Create free account
hub / github.com/BruceEckel/OnJava8-Examples / sortBin

Method sortBin

patterns/recyclec/RecycleC.java:41–46  ·  view source on GitHub ↗
(TrashBin<T> bin)

Source from the content-addressed store, hash-verified

39 return false; // TrashBin not found for t
40 }
41 public void sortBin(TrashBin<T> bin) { // [2]
42 for(T trash : bin)
43 if(!sort(trash))
44 throw new RuntimeException(
45 "Bin not found for " + trash);
46 }
47 public void show() {
48 for(TrashBin<? extends T> tbin : this) {
49 String typeName = tbin.binType.getSimpleName();

Callers 1

mainMethod · 0.95

Calls 1

sortMethod · 0.95

Tested by

no test coverage detected