org.sourcejammer.util
Class CachedListLink

java.lang.Object
  |
  +--org.sourcejammer.util.CachedListLink
All Implemented Interfaces:
CachedObject, ListLink

public class CachedListLink
extends java.lang.Object
implements ListLink, CachedObject

Represents a single item in a linked list.


Field Summary
private  Cache mCache
           
private  ListLink mNext
           
private  java.lang.Object mObj
           
private  java.lang.Object moKey
           
private  ListLink mPrev
           
private  java.lang.String msListKey
           
 
Constructor Summary
CachedListLink(java.lang.String listKey)
           
 
Method Summary
 java.lang.Object getKey()
           
 java.lang.String getListKey()
           
 ListLink getNext()
           
 java.lang.Object getObject()
           
 ListLink getPrev()
           
 void removeFromCache()
           
 void removeFromList()
           
 void setCache(Cache c)
           
 void setKey(java.lang.Object o)
           
 void setNext(ListLink l)
           
 void setObject(java.lang.Object o)
           
 void setPrev(ListLink l)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mObj

private java.lang.Object mObj

mNext

private ListLink mNext

mPrev

private ListLink mPrev

msListKey

private java.lang.String msListKey

mCache

private Cache mCache

moKey

private java.lang.Object moKey
Constructor Detail

CachedListLink

public CachedListLink(java.lang.String listKey)
Method Detail

setCache

public void setCache(Cache c)
Specified by:
setCache in interface CachedObject

setKey

public void setKey(java.lang.Object o)
Specified by:
setKey in interface CachedObject

getKey

public java.lang.Object getKey()
Specified by:
getKey in interface CachedObject

removeFromCache

public void removeFromCache()
Specified by:
removeFromCache in interface CachedObject

setObject

public void setObject(java.lang.Object o)
Specified by:
setObject in interface ListLink

getObject

public java.lang.Object getObject()
Specified by:
getObject in interface ListLink

setNext

public void setNext(ListLink l)
Specified by:
setNext in interface ListLink

getNext

public ListLink getNext()
Specified by:
getNext in interface ListLink

setPrev

public void setPrev(ListLink l)
Specified by:
setPrev in interface ListLink

getPrev

public ListLink getPrev()
Specified by:
getPrev in interface ListLink

removeFromList

public void removeFromList()
Specified by:
removeFromList in interface ListLink

getListKey

public java.lang.String getListKey()


Copyright 2003 Soucejammer project.