You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
848 B

package com.monke.monkeybook;
import java.util.HashMap;
import java.util.Map;
public class BitIntentDataManager {
public static Map<String,Object> bigData;
private static BitIntentDataManager instance = null;
public static BitIntentDataManager getInstance(){
if(instance == null){
synchronized (BitIntentDataManager.class){
if(instance == null){
instance = new BitIntentDataManager();
}
}
}
return instance;
}
private BitIntentDataManager(){
bigData = new HashMap<>();
}
public Object getData(String key){
return bigData.get(key);
}
public void putData(String key,Object data){
bigData.put(key,data);
}
public void cleanData(String key){
bigData.remove(key);
}
}