public static <KEY extends Comparable<KEY>, VALUE> CacheToMapAdapter<KEY, VALUE> of(Cache<KEY, VALUE> cache) {
    return new CacheToMapAdapter<>(cache);
  }
public static < KEY extends Comparable < KEY > , VALUE > CacheToMapAdapter < KEY , VALUE > of ( Cache < KEY , VALUE > cache ) { return new CacheToMapAdapter < > ( cache ) ; }
Factory method used to construct a new instance of {@link CacheToMapAdapter} initialized with
the given {@link Cache} used to back the {@link Map}.

@param <KEY> {@link Class type} of keys used by the {@link Map}.
@param <VALUE> {@link Class type} of the values stored by the {@link Map}.
@param cache {@link Cache} to adapt as a {@link Map}, backing the {@link Map} instance.
@return a new {@link CacheToMapAdapter} initialized with the given {@link Cache}.
@throws IllegalArgumentException if {@link Cache} is {@literal null}.
@see org.cp.elements.data.caching.Cache
@see #CacheToMapAdapter(Cache)