Drools :: Core 6.2.0.Final

org.drools.core.util
Class LinkedListEntry<T1 extends LinkedListNode<T1>,T2>

java.lang.Object
  extended by org.drools.core.util.AbstractBaseLinkedListNode<T1>
      extended by org.drools.core.util.LinkedListEntry<T1,T2>
All Implemented Interfaces:
Externalizable, Serializable, Entry<T1>, LinkedListNode<T1>
Direct Known Subclasses:
SimpleMode

public class LinkedListEntry<T1 extends LinkedListNode<T1>,T2>
extends AbstractBaseLinkedListNode<T1>
implements Externalizable

The idea behind LinkedListNodeWrapper is to be able to add the same LinkedListNode to multiple LinkedLists where the node can have different previous and next nodes in each list.

See Also:
Serialized Form

Constructor Summary
LinkedListEntry()
           
LinkedListEntry(T2 object)
           
 
Method Summary
 boolean equals(Object other)
           
 T2 getObject()
           
 int hashCode()
           
 void readExternal(ObjectInput in)
           
 void setObject(T2 object)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class org.drools.core.util.AbstractBaseLinkedListNode
getNext, getPrevious, nullPrevNext, setNext, setPrevious
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinkedListEntry

public LinkedListEntry()

LinkedListEntry

public LinkedListEntry(T2 object)
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

getObject

public T2 getObject()

setObject

public void setObject(T2 object)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object other)
Overrides:
equals in class Object

Drools :: Core 6.2.0.Final

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