| 7 | import java.util.*; |
| 8 | |
| 9 | public class ClassToListOfTrashMap { |
| 10 | public static void |
| 11 | show(Map<Class, List<Trash>> map) { |
| 12 | map.values().forEach( bin -> { |
| 13 | String typeName = "Trash"; |
| 14 | if(!bin.isEmpty()) |
| 15 | typeName = |
| 16 | bin.get(0).getClass().getSimpleName(); |
| 17 | TrashValue.sum(bin, typeName); |
| 18 | }); |
| 19 | } |
| 20 | } |
nothing calls this directly
no outgoing calls
no test coverage detected