public class HierNode<T> extends Object implements LatticeElement<T>, Comparable<HierNode<T>>, Externalizable
Modifier and Type | Field and Description |
---|---|
BitSet |
bitMask |
List<HierNode<T>> |
children |
List<HierNode<T>> |
parents |
T |
value |
Modifier | Constructor and Description |
---|---|
|
HierNode() |
|
HierNode(BitSet key) |
protected |
HierNode(HierNode<T> xt) |
|
HierNode(T value) |
|
HierNode(T val,
BitSet key) |
Modifier and Type | Method and Description |
---|---|
void |
addChild(HierNode<T> node) |
void |
addParent(HierNode<T> node) |
int |
compareTo(HierNode<T> hierNode) |
boolean |
equals(Object o) |
BitSet |
getBitMask() |
Collection<HierNode<T>> |
getChildren() |
Collection<HierNode<T>> |
getParents() |
T |
getValue() |
int |
hashCode() |
void |
readExternal(ObjectInput in) |
void |
setBitMask(BitSet bitMask) |
void |
setValue(T value) |
protected String |
toBinaryString(BitSet mask,
int len) |
String |
toString() |
String |
toString(int len) |
void |
writeExternal(ObjectOutput out) |
public HierNode()
public HierNode(T value)
public HierNode(BitSet key)
public T getValue()
getValue
in interface LatticeElement<T>
public BitSet getBitMask()
getBitMask
in interface LatticeElement<T>
public void setBitMask(BitSet bitMask)
public Collection<HierNode<T>> getParents()
public Collection<HierNode<T>> getChildren()
public String toString(int len)
public int compareTo(HierNode<T> hierNode)
compareTo
in interface Comparable<HierNode<T>>
public void setValue(T value)
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
Copyright © 2001–2016 JBoss by Red Hat. All rights reserved.