T
- type of the symbols in the alphabet being huffman-encodedpublic final class HuffmanBitCode<T>
extends java.lang.Object
Constructor and Description |
---|
HuffmanBitCode(T symbol,
int codeWord,
int codeWordBitLength) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBitCodeWithPrefix() |
int |
getCodeWord() |
int |
getCodeWordBitLength() |
T |
getSymbol() |
java.lang.String |
toString() |
public HuffmanBitCode(T symbol, int codeWord, int codeWordBitLength)
public T getSymbol()
public int getCodeWord()
public int getCodeWordBitLength()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getBitCodeWithPrefix()
codeWordBitLength
with leading zeros