Methode getDictionnary
This commit is contained in:
@@ -3,8 +3,8 @@ package fr.iutfbleau.sae.mhuffman;
|
||||
import java.util.*;
|
||||
|
||||
public class CanonicalCode{
|
||||
private Map<Character,Integer> codeLenghts;
|
||||
private Map<Character,Integer> canonicalCodes;
|
||||
private Map<Integer,Integer> codeLenghts;
|
||||
private Map<Integer,Integer> canonicalCodes = new HashMap<>();
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -192,5 +192,9 @@ public class HuffmanTree {
|
||||
}
|
||||
|
||||
|
||||
public Map<Integer,String> getDictionnary(){
|
||||
return this.codes;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user