GNU Trove

gnu.trove.list
Class TLinkableAdapter<T extends TLinkable>

java.lang.Object
  extended by gnu.trove.list.TLinkableAdapter<T>
All Implemented Interfaces:
TLinkable<T>, java.io.Serializable

public abstract class TLinkableAdapter<T extends TLinkable>
extends java.lang.Object
implements TLinkable<T>

Simple adapter class implementing TLinkable, so you don't have to. Example:

        private class MyObject extends TLinkableAdapter {
                private final String value;

                MyObject( String value ) {
                        this.value = value;
                }

                public String getValue() {
                        return value;
                }
        }
 

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface gnu.trove.list.TLinkable
serialVersionUID
 
Constructor Summary
TLinkableAdapter()
           
 
Method Summary
 T getNext()
          Returns the linked list node after this one.
 T getPrevious()
          Returns the linked list node before this one.
 void setNext(T next)
          Sets the linked list node after this one.
 void setPrevious(T prev)
          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
 

Constructor Detail

TLinkableAdapter

public TLinkableAdapter()
Method Detail

getNext

public T getNext()
Description copied from interface: TLinkable
Returns the linked list node after this one.

Specified by:
getNext in interface TLinkable<T extends TLinkable>
Returns:
a TLinkable value

setNext

public void setNext(T next)
Description copied from interface: TLinkable
Sets the linked list node after this one.

Specified by:
setNext in interface TLinkable<T extends TLinkable>
Parameters:
next - a TLinkable value

getPrevious

public T getPrevious()
Description copied from interface: TLinkable
Returns the linked list node before this one.

Specified by:
getPrevious in interface TLinkable<T extends TLinkable>
Returns:
a TLinkable value

setPrevious

public void setPrevious(T prev)
Description copied from interface: TLinkable
Sets the linked list node before this one.

Specified by:
setPrevious in interface TLinkable<T extends TLinkable>
Parameters:
prev - a TLinkable value

GNU Trove