Back to project page Avatar.
The source code is released under:
GNU General Public License
If you think the Android project Avatar 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.syw.avatar.util; //from w w w . ja va2 s .c o m import android.annotation.SuppressLint; import java.util.HashMap; /** * ??????????? * @author GuiLin */ public class ThumbnailsUtil { @SuppressLint("UseSparseArrays") private static HashMap<Integer,String> hash = new HashMap<Integer, String>(); /** * ??value * @param key * @return */ public static String MapgetHashValue(int key,String defalt){ if(hash==null||!hash.containsKey(key)){ return defalt; } return hash.get(key); } /** */ public static void put(Integer key,String value){ hash.put(key, value); } public static void clear(){ hash.clear(); } }