package edu.claflin.finder.logic.comp;

import static edu.claflin.finder.Global.getLogger;

import edu.claflin.finder.algo.huffman.HuffmanNode;

import java.util.Comparator;

//Comparator used to compare Huffman nodes based on their frequencies.
public class HuffComparator implements Comparator<HuffmanNode> {
    public int compare(HuffmanNode a, HuffmanNode b) {
        return a.getFreq() - b.getFreq();
    }
}