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

📄 sizedcache.java

📁 本系统是用 java 语言实现的一个 Email客户端
💻 JAVA
字号:
package net.suberic.util.cache;/** * This represents a cache that will cache objects up to a certain amount * of space.  After that space is filled, it will start removing items * using a least recently used algorithm. */public interface SizedCache {    /**   * Adds an object to the Cache.   */  public void add(Object key, Object value);  /**   * Gets an object from the Cache.  If the object is not available,   * returns null.   */  public Object get(Object key);  /**   * Removes an object from the Cache.   */  public void invalidateCache(Object key);  /**   * Invalidates the entire cache.   */  public void invalidateCache();  /**   * Gets the size limit for the cache.   */  public long getMaxSize();  /**   * Gets the size limit for an individual item in the cache.  For obvious   * reasons, this should probably not be greater than the max size.   */  public long getMaxEntrySize();  /**   * Gets the current size of the cache.   */  public long getSize();}

⌨️ 快捷键说明

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