How's about Collections.getSafe(...) for Map<?, ?>, which wouldn't return null?

Paul Benedict pbenedict at apache.org
Mon Oct 26 15:57:17 UTC 2009


I actually don't need closures to accomplish this. Now this solution I
wouldn't recommend for the JDK, but a subclass of Map could
automatically do the management of the inner collections for me.

Paul



More information about the core-libs-dev mailing list