Package org.drools.traits.core.util
Class HierNode<T>
- java.lang.Object
-
- org.drools.traits.core.util.HierNode<T>
-
- All Implemented Interfaces:
Externalizable,Serializable,Comparable<HierNode<T>>,LatticeElement<T>
public class HierNode<T> extends Object implements LatticeElement<T>, Comparable<HierNode<T>>, Externalizable
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddChild(HierNode<T> node)voidaddParent(HierNode<T> node)intcompareTo(HierNode<T> hierNode)booleanequals(Object o)BitSetgetBitMask()Collection<HierNode<T>>getChildren()Collection<HierNode<T>>getParents()TgetValue()inthashCode()voidreadExternal(ObjectInput in)voidsetBitMask(BitSet bitMask)voidsetValue(T value)protected StringtoBinaryString(BitSet mask, int len)StringtoString()StringtoString(int len)voidwriteExternal(ObjectOutput out)
-
-
-
Method Detail
-
getValue
public T getValue()
- Specified by:
getValuein interfaceLatticeElement<T>
-
getBitMask
public BitSet getBitMask()
- Specified by:
getBitMaskin interfaceLatticeElement<T>
-
setBitMask
public void setBitMask(BitSet bitMask)
-
getParents
public Collection<HierNode<T>> getParents()
-
getChildren
public Collection<HierNode<T>> getChildren()
-
toString
public String toString(int len)
-
compareTo
public int compareTo(HierNode<T> hierNode)
- Specified by:
compareToin interfaceComparable<T>
-
setValue
public void setValue(T value)
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
-