org.enhydra.xml.xmlc.deferredparsing
Class Cache.MRUCache

java.lang.Object
  |
  +--org.enhydra.xml.xmlc.deferredparsing.Cache.MRUCache
Enclosing class:
Cache

protected static class Cache.MRUCache
extends Object

A simple class for holding references to the most recently used entries.


Constructor Summary
(package private) Cache.MRUCache(int num)
          Creates a new MRUCache instance.
 
Method Summary
(package private)  Object add(Object obj)
          Describe add method here.
(package private)  void clear()
          Clear the MRU cache.
(package private)  int getCapacity()
          Describe getCapacity method here.
(package private)  void remove(Object obj)
          Remove an object from the cache.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Cache.MRUCache

Cache.MRUCache(int num)
Creates a new MRUCache instance.
Parameters:
num - an int value
Method Detail

getCapacity

int getCapacity()
Describe getCapacity method here.
Returns:
an int value

add

Object add(Object obj)
Describe add method here.
Parameters:
obj - an Object value
Returns:
an Object value

remove

void remove(Object obj)
Remove an object from the cache.
Parameters:
obj - an Object value

clear

void clear()
Clear the MRU cache.


Copyright © 1999-2002 enhydra.org (Mark Diekhans, David Li, Richard Kunze). All Rights reserved.