⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 attributedexpireablecache.java

📁 java 开发的一个电子邮局,挺实用的
💻 JAVA
字号:
/* 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -