Package org.apache.coyote.http2
Class HPackHuffman.HuffmanCode
- java.lang.Object
-
- org.apache.coyote.http2.HPackHuffman.HuffmanCode
-
- Enclosing class:
- HPackHuffman
protected static class HPackHuffman.HuffmanCode extends java.lang.ObjectRepresents a Huffman code with a value and bit length.
-
-
Constructor Summary
Constructors Constructor Description HuffmanCode(int value, int length)Creates a new Huffman code.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)intgetLength()Returns the code length in bits.intgetValue()Returns the code value.inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
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(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-