Search code examples
javacollectionsguava

Where's google-collection's LazyMap?


One of my favourites from apache commons-collections was the LazyMap which would use a Transformer to instantiate values on the fly when doing map.get(newKey); // Will not return null!.

Why doesn't google collections have the same?


Solution

  • since 10.0, guava have a new class CacheBuilder instead, and it's gwt-compatible.

    These are the differences.