xml.cache
Class CacheEntry
java.lang.Object
xml.cache.CacheEntry
public class CacheEntry
- extends java.lang.Object
While they may be some ordering between related CacheEntries (eg schema A imports
schema B), this is not recorded in the CacheEntry : one only says that A and B are
related and if either A or B changes, both are invalidated.
RequestingBuffer is really a reference-counting algorithm. A CacheEntry is
evicted when no buffer requests it anymore.
|
Constructor Summary |
CacheEntry(java.lang.String path,
java.lang.Object key,
java.lang.Object value)
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
CacheEntry
public CacheEntry(java.lang.String path,
java.lang.Object key,
java.lang.Object value)
getRequestingBuffers
public java.util.Set<org.gjt.sp.jedit.Buffer> getRequestingBuffers()
addRequestingBuffer
public void addRequestingBuffer(org.gjt.sp.jedit.Buffer b)
getRelated
public java.util.List<CacheEntry> getRelated()
getCachedItem
public java.lang.Object getCachedItem()
getKey
public java.lang.Object getKey()
getPath
public java.lang.String getPath()
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object