net.sf.mmm.util.collection.api
Interface DoubleLinkedNode<V,NODE extends DoubleLinkedNode<V,NODE>>

Type Parameters:
V - is the generic type of the value of this node.
NODE - is the generic type of the node itself.
All Superinterfaces:
LinkedNode<V,NODE>
All Known Implementing Classes:
BasicDoubleLinkedNode

public interface DoubleLinkedNode<V,NODE extends DoubleLinkedNode<V,NODE>>
extends LinkedNode<V,NODE>

This is the interface for a node of a double linked list.
ATTENTION:
According to the generic-type-system of Java this interface can not be used as a proper API until the generic <NODE> is finally bound. Please use BasicDoubleLinkedNode instead.

Since:
2.0.0
Author:
Joerg Hohwiller (hohwille at users.sourceforge.net)

Method Summary
 NODE getPrevious()
          This method gets the previous node of the double linked list.
 boolean isLinked()
          This method determines if this node is linked.
 
Methods inherited from interface net.sf.mmm.util.collection.api.LinkedNode
addToList, getNext, getValue, toList
 

Method Detail

getPrevious

NODE getPrevious()
This method gets the previous node of the double linked list.

Returns:
the previous node or null if this is the first node (head).

isLinked

boolean isLinked()
This method determines if this node is linked. A node is linked if it has a next node. A node is also linked if it has a previous node.

Specified by:
isLinked in interface LinkedNode<V,NODE extends DoubleLinkedNode<V,NODE>>
Returns:
true if linked, false otherwise.


Copyright © 2001-2010 mmm-Team. All Rights Reserved.