D E G H I R S T

D

decode(String) - Method in class HuffmanCode
Decode a string using this Huffman code.

E

encode(String) - Method in class HuffmanCode
Encode a string using this Huffman code.
equals(Object) - Method in class HNode
Equals predicate considers the Character and frequency only.

G

getChar() - Method in class HNode
 
getCode() - Method in class HNode
 
getCodeMap() - Method in class HuffmanCode
Retrieve the internal Huffman Code Map.
getCodeTree() - Method in class HuffmanCode
Retrieve the internal Huffman Code Tree.
getFrequency() - Method in class HNode
 
getLeft() - Method in class HNode
 
getRight() - Method in class HNode
 

H

HNode - Class in <Unnamed>
A binary tree node used for Huffman code trees.
HNode() - Constructor for class HNode
Simple constructor - sets all fields to null or 0.
HNode(Character) - Constructor for class HNode
Constructor that sets the character only.
HNode(Character, int) - Constructor for class HNode
Constructor that sets the character and frequency.
HNode(Character, int, HNode, HNode) - Constructor for class HNode
Fully parameterized constructor.
HuffmanCode - Class in <Unnamed>
Driver to create Huffman codes and encoded strings.
HuffmanCode(String) - Constructor for class HuffmanCode
Establish this Huffman code based on an initial string.
HuffmanHeap - Class in <Unnamed>
An HNode min-heap (priority queue) for generating Huffman codes.
HuffmanHeap() - Constructor for class HuffmanHeap
 

I

insert(HNode) - Method in class HuffmanHeap
Insert a node into the heap.
isEmpty() - Method in class HuffmanHeap
Predicate for empty heap.

R

remove() - Method in class HuffmanHeap
Remove the min-node (root) of this heap.

S

setChar(Character) - Method in class HNode
 
setCode(String) - Method in class HNode
 
setFrequency(int) - Method in class HNode
 
setLeft(HNode) - Method in class HNode
 
setRight(HNode) - Method in class HNode
 
size() - Method in class HuffmanHeap
Return the number of nodes in this heap.

T

toString() - Method in class HNode
String representation of this node.
Format: <HNode: char, frequency, code>
toString() - Method in class HuffmanHeap
Printable string.
Format: <Heap: node0;node1; ...>

D E G H I R S T