
com.frameworkset.platform.cache.MapContainer Maven / Gradle / Ivy
package com.frameworkset.platform.cache;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
/**
*
*
* Title: MapContainer.java
*
* Description: map缓冲器,事先java.util.Map的基本功能,并提供缓冲的集群功能
*
* Copyright: Copyright (c) 2007
*
* Company: bbossgroups
* @Date May 6, 2008 10:50:04 AM
* @author biaoping.yin,尹标平
* @version 1.0
*/
public class MapContainer implements java.util.Map{
/**
* 判断系统是否启用集群机制
*/
// private static final boolean enablecluster = ConfigManager.getInstance().getConfigBooleanValue("enablecluster",false);
private Map map = new HashMap();
public void clear() {
map.clear();
}
public boolean containsKey(Object key) {
return this.map.containsKey(key);
}
public boolean containsValue(Object value) {
return this.map.containsValue(value);
}
public Set entrySet() {
return this.map.entrySet();
}
public Object get(Object key) {
return this.map.get(key);
}
public boolean isEmpty() {
return this.map.isEmpty();
}
public Set keySet() {
return this.map.keySet();
}
public Object put(Object key, Object value) {
return this.map.put(key, value);
}
public void putAll(Map t) {
this.map.putAll(t);
}
public Object remove(Object key) {
return this.map.remove(key);
}
public int size() {
return this.map.size();
}
public Collection values() {
return this.map.values();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy