Java, Eclipse Collections, Open Source, Software Development, Programming.
names in the Enum also wouldn’t solve the generic problems with the get method on Map. In fact, you could still write map.get(true) and it would return null. Stop Hammer time! I think it is better for the JDK to leverage its static typing benefits and return specific types instead of returning Map,