|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sam.io.Node | +--sam.io.Huffman.Leaf
Special Node
representing a leaf.
Field Summary | |
int |
value
The pattern encoded by this leaf. |
Method Summary | |
boolean |
isLeaf()
Wether this node is a pure leaf, i.e. |
void |
oneMore()
Increments the weight of this leaf by one. |
java.util.Enumeration |
ordered()
Gets the enumeration of all nodes that are lighter than this node in decreasing order. |
java.lang.String |
toString()
Gets a formatted representation of this huffman tree. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public final int value
Huffman#mask
might be non-null.
Method Detail |
public java.lang.String toString()
toString
in class sam.io.Node
public void oneMore()
public java.util.Enumeration ordered()
Huffman
instance.
public boolean isLeaf()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |