Protomatter Software v1.1.7

com.protomatter.util
Interface Cache

All Known Implementing Classes:
SoftReferenceCache

public interface Cache

A generic interface for caches.


Method Summary
 void clear()
          Clear the entire cache.
 void clear(java.lang.Object key)
          Clear the value at the given location in the cache.
 java.lang.Object get(java.lang.Object key)
          Get the value at a given location in the cache.
 void put(java.lang.Object key, java.lang.Object val)
          Put a value into the given location in the cache.
 

Method Detail

put

public void put(java.lang.Object key,
                java.lang.Object val)
Put a value into the given location in the cache.

get

public java.lang.Object get(java.lang.Object key)
Get the value at a given location in the cache. If the value has expired or does not exist, this method will return null.

clear

public void clear(java.lang.Object key)
Clear the value at the given location in the cache.

clear

public void clear()
Clear the entire cache.

Protomatter Software v1.1.7
Copyright 1998-2002 Nate Sammons

Protomatter Software v1.1.7 http://protomatter.sourceforge.net/1.1.7