org.apache.batik.ext.awt.image.rendered

Interface LRUCache.LRUObj

public interface LRUCache.LRUObj

Interface for object participating in the LRU Cache. These inform the object of key events in the status of the object in the LRU cache.
Method Summary
LRUCache.LRUNodelruGet()
Called to get the LRU node for this object.
voidlruRemove()
Called to inform the object that it is no longer in the cache.
voidlruSet(LRUCache.LRUNode nde)
Called when the object first becomes active in the LRU cache.

Method Detail

lruGet

public LRUCache.LRUNode lruGet()
Called to get the LRU node for this object. Should return the node passed in to lruSet.

lruRemove

public void lruRemove()
Called to inform the object that it is no longer in the cache.

lruSet

public void lruSet(LRUCache.LRUNode nde)
Called when the object first becomes active in the LRU cache.

Parameters: nde The LRU cache node associated with this object. should be remembered so it can be returned by lruGet.

Copyright B) 2007 Apache Software Foundation. All Rights Reserved.