Code example for MapMaker

Methods: makeMap

0
 *  
 * @author Dhanji R. Prasanna (dhanji@gmail.com) 
 */ 
@ThreadSafe @SessionScoped 
public class HttpSessionFlashCache implements FlashCache, Serializable {
  private final ConcurrentMap<String, Object> cache = new MapMaker().makeMap();
 
  @SuppressWarnings("unchecked") 
  public <T> T get(String key) {
    return (T) cache.get(key);
  } 
 
  @SuppressWarnings("unchecked") 
  public <T> T remove(String key) {
    return (T) cache.remove(key);
  } 
 
  public <T> void put(String key, T t) {
    cache.put(key, t);
  } 
Contextual code suggestions in your IDE  Get Codota for Java