org.cdlib.xtf.util
Class LinkableImpl

Object
  extended by LinkableImpl
All Implemented Interfaces:
Linkable
Direct Known Subclasses:
Cache.ListEntry

public class LinkableImpl
extends Object
implements Linkable

A simple implementation of the Linkable interface.


Field Summary
private  Linkable nextLink
          Pointer to the next link in the chain
private  EmbeddedList owner
          The list that owns this item
private  Linkable prevLink
          Pointer to the previous link in the chain
 
Constructor Summary
LinkableImpl()
           
 
Method Summary
 Linkable getNext()
          Get a reference to the next item in the chain
 EmbeddedList getOwner()
          Get a reference to the EmbeddedList that owns this object
 Linkable getPrev()
          Get a reference to the previous item in the chain
 void setNext(Linkable l)
          Assign the next item in the chain
 void setOwner(EmbeddedList o)
          Get a reference to the EmbeddedList that owns this object
 void setPrev(Linkable l)
          Assign the previous item in the chain
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nextLink

private Linkable nextLink
Pointer to the next link in the chain


prevLink

private Linkable prevLink
Pointer to the previous link in the chain


owner

private EmbeddedList owner
The list that owns this item

Constructor Detail

LinkableImpl

public LinkableImpl()
Method Detail

getNext

public Linkable getNext()
Description copied from interface: Linkable
Get a reference to the next item in the chain

Specified by:
getNext in interface Linkable

getPrev

public Linkable getPrev()
Description copied from interface: Linkable
Get a reference to the previous item in the chain

Specified by:
getPrev in interface Linkable

getOwner

public EmbeddedList getOwner()
Description copied from interface: Linkable
Get a reference to the EmbeddedList that owns this object

Specified by:
getOwner in interface Linkable

setNext

public void setNext(Linkable l)
Description copied from interface: Linkable
Assign the next item in the chain

Specified by:
setNext in interface Linkable

setPrev

public void setPrev(Linkable l)
Description copied from interface: Linkable
Assign the previous item in the chain

Specified by:
setPrev in interface Linkable

setOwner

public void setOwner(EmbeddedList o)
Description copied from interface: Linkable
Get a reference to the EmbeddedList that owns this object

Specified by:
setOwner in interface Linkable