(TrashBin<T> bin)
| 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(); |