gnu.trove
Class TLinkableAdaptor

java.lang.Object
  extended by gnu.trove.TLinkableAdaptor
All Implemented Interfaces:
TLinkable, java.io.Serializable

public class TLinkableAdaptor
extends java.lang.Object
implements TLinkable

Adapter for TLinkable interface which implements the interface and can therefore be extended trivially to create TLinkable objects without having to implement the obvious.

Created: Thurs Nov 15 16:25:00 2001

Version:
$Id: TLinkableAdaptor.java,v 1.1 2001/11/15 17:09:54 jasonbaldridge Exp $
Author:
Jason Baldridge
See Also:
TLinkedList, Serialized Form

Field Summary
(package private)  TLinkable _next
           
(package private)  TLinkable _previous
           
 
Constructor Summary
TLinkableAdaptor()
           
 
Method Summary
 TLinkable getNext()
          Returns the linked list node after this one.
 TLinkable getPrevious()
          Returns the linked list node before this one.
 void setNext(TLinkable linkable)
          Sets the linked list node after this one.
 void setPrevious(TLinkable linkable)
          Sets the linked list node before this one.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_previous

TLinkable _previous

_next

TLinkable _next
Constructor Detail

TLinkableAdaptor

public TLinkableAdaptor()
Method Detail

getNext

public TLinkable getNext()
Returns the linked list node after this one.

Specified by:
getNext in interface TLinkable
Returns:
a TLinkable value

getPrevious

public TLinkable getPrevious()
Returns the linked list node before this one.

Specified by:
getPrevious in interface TLinkable
Returns:
a TLinkable value

setNext

public void setNext(TLinkable linkable)
Sets the linked list node after this one.

Specified by:
setNext in interface TLinkable
Parameters:
linkable - a TLinkable value

setPrevious

public void setPrevious(TLinkable linkable)
Sets the linked list node before this one.

Specified by:
setPrevious in interface TLinkable
Parameters:
linkable - a TLinkable value