MCPcopy Create free account
hub / github.com/PrajaktaSathe/Java / compare

Method compare

Programs/HuffmanCoding.java:15–17  ·  view source on GitHub ↗
(HuffmanNode x, HuffmanNode y)

Source from the content-addressed store, hash-verified

13// For comparing the nodes
14class ImplementComparator implements Comparator<HuffmanNode> {
15 public int compare(HuffmanNode x, HuffmanNode y) {
16 return x.item - y.item;
17 }
18}
19
20// Implementing the huffman algorithm

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected