attributedexpireablecache.java

来自「WebMail is a server application that all」· Java 代码 · 共 44 行

JAVA
44
字号
/* CVS ID: $Id: AttributedExpireableCache.java,v 1.1 2000/09/13 12:47:50 wastl Exp $ */package net.wastl.webmail.misc;import java.util.*;/** * AttributedExpireableCache.java * * * Created: Tue Apr 25 14:57:22 2000 * * @author Sebastian Schaffert * @version */public class AttributedExpireableCache extends ExpireableCache {        protected Hashtable attributes;    public AttributedExpireableCache(int capacity, float expire_factor) {	super(capacity,expire_factor);		attributes=new Hashtable(capacity);    }        public AttributedExpireableCache(int capacity) {	super(capacity);	attributes=new Hashtable(capacity);    }    public synchronized void put(Object id, Object object, Object attribs) {	attributes.put(id,attribs);	super.put(id,object);    }    public Object getAttributes(Object key) {	return attributes.get(key);    }    public synchronized void remove(Object key) {	attributes.remove(key);	super.remove(key);    }				} // AttributedExpireableCache

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?