Class HPackHuffman.HuffmanCode

java.lang.Object
org.apache.coyote.http2.HPackHuffman.HuffmanCode
Enclosing class:
HPackHuffman

protected static class HPackHuffman.HuffmanCode extends Object
Represents a Huffman code with a value and bit length.
  • Constructor Details

    • HuffmanCode

      public HuffmanCode(int value, int length)
      Creates a new Huffman code.
      Parameters:
      value - the code value
      length - the code length in bits
  • Method Details

    • getValue

      public int getValue()
      Returns the code value.
      Returns:
      the code value
    • getLength

      public int getLength()
      Returns the code length in bits.
      Returns:
      the code length in bits
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object