Back to project page protohipster.
The source code is released under:
Apache License
If you think the Android project protohipster listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.flipper83.protohipster.globalutils.cache.implementations; /* w w w . j a v a 2 s.c o m*/ import com.flipper83.protohipster.globalutils.cache.Cache; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; /** * */ public class MapKeysCache implements Cache<String> { private Map<String,String> values = new HashMap<String, String>(); @Override public String get(String key) { return values.get(key); } @Override public void put(String key, String value) { values.put(key,value); } @Override public List<String> getAllValues() { return new ArrayList<String>(values.values()); } }