MapCache<K, V> constructor

MapCache<K, V>({Map<K, V> map })

Creates a new MapCache, optionally using map as the backing Map.

Implementation

MapCache({Map<K, V> map}) : _map = map != null ? map : new HashMap<K, V>();