org.drools.core.util
Class AbstractBaseLinkedListNode<T extends LinkedListNode<T>>

java.lang.Object
  extended by org.drools.core.util.AbstractBaseLinkedListNode<T>
All Implemented Interfaces:
Externalizable, Serializable, Entry, LinkedListNode<T>
Direct Known Subclasses:
ActivationGroupNode, ActivationNode, LinkedListEntry, SimpleLogicalDependency

public class AbstractBaseLinkedListNode<T extends LinkedListNode<T>>
extends Object
implements LinkedListNode<T>

Provides a abstract base implementation that an object can extend so that it can be used in a LinkedList.

See Also:
LinkedList, Serialized Form

Constructor Summary
AbstractBaseLinkedListNode()
          Empty Constructor
 
Method Summary
 T getNext()
          Returns the next node
 T getPrevious()
          Returns the previous node
 void readExternal(ObjectInput in)
           
 void setNext(Entry next)
           
 void setNext(T next)
          Sets the next node
 void setPrevious(T previous)
          Sets the previous node
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractBaseLinkedListNode

public AbstractBaseLinkedListNode()
Empty Constructor

Method Detail

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

getNext

public T getNext()
Description copied from interface: LinkedListNode
Returns the next node

Specified by:
getNext in interface Entry
Specified by:
getNext in interface LinkedListNode<T extends LinkedListNode<T>>
Returns:
The next LinkedListNode

setNext

public void setNext(T next)
Description copied from interface: LinkedListNode
Sets the next node

Specified by:
setNext in interface LinkedListNode<T extends LinkedListNode<T>>
Parameters:
next - The next LinkedListNode

getPrevious

public T getPrevious()
Description copied from interface: LinkedListNode
Returns the previous node

Specified by:
getPrevious in interface LinkedListNode<T extends LinkedListNode<T>>
Returns:
The previous LinkedListNode

setPrevious

public void setPrevious(T previous)
Description copied from interface: LinkedListNode
Sets the previous node

Specified by:
setPrevious in interface LinkedListNode<T extends LinkedListNode<T>>
Parameters:
previous - The previous LinkedListNode

setNext

public void setNext(Entry next)
Specified by:
setNext in interface Entry


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.