Package gnu.trove
Class TLinkableAdapter
java.lang.Object
gnu.trove.TLinkableAdapter
- All Implemented Interfaces:
TLinkable
,Serializable
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: TLinkableAdapter.java,v 1.1 2006/11/10 23:27:56 robeden Exp $
- Author:
- Jason Baldridge
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetNext()
Returns the linked list node after this one.Returns the linked list node before this one.void
Sets the linked list node after this one.void
setPrevious
(TLinkable linkable) Sets the linked list node before this one.
-
Constructor Details
-
TLinkableAdapter
public TLinkableAdapter()
-
-
Method Details
-
getNext
Returns the linked list node after this one. -
getPrevious
Returns the linked list node before this one.- Specified by:
getPrevious
in interfaceTLinkable
- Returns:
- a
TLinkable
value
-
setNext
Sets the linked list node after this one. -
setPrevious
Sets the linked list node before this one.- Specified by:
setPrevious
in interfaceTLinkable
- Parameters:
linkable
- aTLinkable
value
-