Package org.drools.core.util
Class LinkedListEntry<T1 extends LinkedListNode<T1>,T2>
- java.lang.Object
-
- org.drools.core.util.AbstractBaseLinkedListNode<T1>
-
- org.drools.core.util.LinkedListEntry<T1,T2>
-
- All Implemented Interfaces:
java.io.Externalizable,java.io.Serializable,Entry<T1>,LinkedListNode<T1>
public class LinkedListEntry<T1 extends LinkedListNode<T1>,T2> extends AbstractBaseLinkedListNode<T1> implements java.io.Externalizable
The idea behindLinkedListNodeWrapperis to be able to add the sameLinkedListNodeto multipleLinkedLists where the node can have different previous and next nodes in each list.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LinkedListEntry()LinkedListEntry(T2 object)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)T2getObject()inthashCode()voidreadExternal(java.io.ObjectInput in)voidsetObject(T2 object)voidwriteExternal(java.io.ObjectOutput out)-
Methods inherited from class org.drools.core.util.AbstractBaseLinkedListNode
getNext, getPrevious, nullPrevNext, setNext, setPrevious
-
-
-
-
Constructor Detail
-
LinkedListEntry
public LinkedListEntry()
-
LinkedListEntry
public LinkedListEntry(T2 object)
-
-
Method Detail
-
readExternal
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException- Specified by:
readExternalin interfacejava.io.Externalizable- Throws:
java.io.IOExceptionjava.lang.ClassNotFoundException
-
writeExternal
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException- Specified by:
writeExternalin interfacejava.io.Externalizable- Throws:
java.io.IOException
-
getObject
public T2 getObject()
-
setObject
public void setObject(T2 object)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
-