Package edu.claflin.finder.algo.huffman

# Class HuffmanNode

java.lang.Object
edu.claflin.finder.algo.huffman.HuffmanNode

public class HuffmanNode extends Object

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `private int`
  `freq`
  `private HuffmanNode`
  `left`
  `private String`
  `name`
  `private HuffmanNode`
  `right`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `HuffmanNode()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `getFreq()`
  `HuffmanNode`
  `getLeft()`
  `String`
  `getName()`
  `HuffmanNode`
  `getRight()`
  `void`
  `incrementFrequency()`
  `void`
  `setFreq(int freq)`
  `void`
  `setLeft(HuffmanNode node)`
  `void`
  `setName(String name)`
  `void`
  `setRight(HuffmanNode node)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### name

    private String name

  - ### freq

    private int freq

  - ### left

    private HuffmanNode left

  - ### right

    private HuffmanNode right

- ## Constructor Details

  - ### HuffmanNode

    public HuffmanNode()

- ## Method Details

  - ### setFreq

    public void setFreq(int freq)

  - ### setName

    public void setName(String name)

  - ### setLeft

    public void setLeft(HuffmanNode node)

  - ### setRight

    public void setRight(HuffmanNode node)

  - ### getName

    public String getName()

  - ### getFreq

    public int getFreq()

  - ### getLeft

    public HuffmanNode getLeft()

  - ### getRight

    public HuffmanNode getRight()

  - ### incrementFrequency

    public void incrementFrequency()