Package gnu.trove.list

# Class TLinkableAdapter<T extends TLinkable>

java.lang.Object
gnu.trove.list.TLinkableAdapter<T>

All Implemented Interfaces:
  `TLinkable<T>`, `Serializable`

public abstract class TLinkableAdapter<T extends TLinkable> extends Object implements TLinkable<T>
Simple adapter class implementing `TLinkable`, so you don't have to. Example:

            private class MyObject extends TLinkableAdapter<MyObject> {
                    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

Constructors
Constructor
Description
`TLinkableAdapter()`

## Method Summary

Modifier and Type
Method
Description
`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 Details

### TLinkableAdapter

public TLinkableAdapter()

## Method Details

### 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