APIdia Launch Partner
Top Inners Fields Constructors Methods
jdk.internal.net.http.qpack

public final Record TableEntry

extends Record
Class Inheritance
Record Components
isStaticTable:boolean 
index:long 
name:CharSequence 
value:CharSequence 
type:TableEntry.EntryType 
huffmanName:boolean 
huffmanValue:boolean 
Imports
jdk.internal.net.http.hpack.QuickHuffman

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum
TableEntry.EntryType

EntryType describes the type of TableEntry as either:

- NAME_VALUE: a table entry where both name and value exist in table - NAME: a table entry where only name is present in table - NEITHER: a table entry where neither name nor value have been found

Field Summary

Modifier and TypeField and Description
private final boolean
huffmanName

Record Component accessed by huffmanName().

private final boolean
huffmanValue

Record Component accessed by huffmanValue().

private final long
index

Record Component accessed by index().

private final boolean
isStaticTable

Record Component accessed by isStaticTable().

private final CharSequence
name

Record Component accessed by name().

private final TableEntry.EntryType
type

Record Component accessed by type().

private final CharSequence
value

Record Component accessed by value().

Constructor Summary

AccessConstructor and Description
public
TableEntry(boolean isStaticTable, long index, CharSequence name, CharSequence value, TableEntry.EntryType type)

public
public
TableEntry(boolean isStaticTable, long index, CharSequence name, CharSequence value, TableEntry.EntryType type, boolean huffmanName, boolean huffmanValue)

Method Summary

Modifier and TypeMethod and Description
public final boolean
equals(Object o)

Implements abstract java.lang.Record.equals.

Indicates whether some other object is "equal to" this one.

public final int
hashCode()

Implements abstract java.lang.Record.hashCode.

Returns a hash code value for the record.

public boolean
huffmanName()

Record Component getter of huffmanName.

public boolean
huffmanValue()

Record Component getter of huffmanValue.

public long
index()

Record Component getter of index.

pack-priv static boolean
public boolean
isStaticTable()

Record Component getter of isStaticTable.

public CharSequence
name()

Record Component getter of name.

public TableEntry
relativizeDynamicTableEntry(long relativeIndex)

public TableEntry
public TableEntry
public final String
toString()

Implements abstract java.lang.Record.toString.

Returns a string representation of the record.

public TableEntry.EntryType
type()

Record Component getter of type.

public CharSequence
value()

Record Component getter of value.

Field Detail

huffmanNameback to summary
private final boolean huffmanName

Record Component accessed by huffmanName().

huffmanValueback to summary
private final boolean huffmanValue

Record Component accessed by huffmanValue().

indexback to summary
private final long index

Record Component accessed by index().

isStaticTableback to summary
private final boolean isStaticTable

Record Component accessed by isStaticTable().

nameback to summary
private final CharSequence name

Record Component accessed by name().

typeback to summary
private final TableEntry.EntryType type

Record Component accessed by type().

valueback to summary
private final CharSequence value

Record Component accessed by value().

Constructor Detail

TableEntryback to summary
public TableEntry(boolean isStaticTable, long index, CharSequence name, CharSequence value, TableEntry.EntryType type)
TableEntryback to summary
public TableEntry(CharSequence name, CharSequence value)
TableEntryback to summary
public TableEntry(boolean isStaticTable, long index, CharSequence name, CharSequence value, TableEntry.EntryType type, boolean huffmanName, boolean huffmanValue)

Method Detail

equalsback to summary
public final boolean equals(Object o)

Implements abstract java.lang.Record.equals.

Doc from java.lang.Record.equals.

Indicates whether some other object is "equal to" this one. In addition to the general contract of Object.equals, record classes must further obey the invariant that when a record instance is "copied" by passing the result of the record component accessor methods to the canonical constructor, as follows:

    R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
hashCodeback to summary
public final int hashCode()

Implements abstract java.lang.Record.hashCode.

Doc from java.lang.Record.hashCode.

Returns a hash code value for the record. Obeys the general contract of Object.hashCode. For records, hashing behavior is constrained by the refined contract of Record.equals, so that any two records created from the same components must have the same hash code.

huffmanNameback to summary
public boolean huffmanName()

Record Component getter of huffmanName.

huffmanValueback to summary
public boolean huffmanValue()

Record Component getter of huffmanValue.

indexback to summary
public long index()

Record Component getter of index.

isHuffmanBetterForback to summary
pack-priv static boolean isHuffmanBetterFor(CharSequence str, boolean isName, TableEntry.EntryType type)
isStaticTableback to summary
public boolean isStaticTable()

Record Component getter of isStaticTable.

nameback to summary
public CharSequence name()

Record Component getter of name.

relativizeDynamicTableEntryback to summary
public TableEntry relativizeDynamicTableEntry(long relativeIndex)
toLiteralsEntryback to summary
public TableEntry toLiteralsEntry()
toNewDynamicTableEntryback to summary
public TableEntry toNewDynamicTableEntry(long index)
toStringback to summary
public final String toString()

Implements abstract java.lang.Record.toString.

Doc from java.lang.Record.toString.

Returns a string representation of the record. In accordance with the general contract of Object#toString(), the toString method returns a string that "textually represents" this record. The result should be a concise but informative representation that is easy for a person to read.

In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves.

typeback to summary
public TableEntry.EntryType type()

Record Component getter of type.

valueback to summary
public CharSequence value()

Record Component getter of value.

jdk.internal.net.http.qpack back to summary

public final Enum TableEntry.EntryType

extends Enum<TableEntry.EntryType>
Class Inheritance

EntryType describes the type of TableEntry as either:

- NAME_VALUE: a table entry where both name and value exist in table - NAME: a table entry where only name is present in table - NEITHER: a table entry where neither name nor value have been found

Field Summary

Modifier and TypeField and Description
public static final TableEntry.EntryType
public static final TableEntry.EntryType
public static final TableEntry.EntryType

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static TableEntry.EntryType
public static TableEntry.EntryType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

NAMEback to summary
public static final TableEntry.EntryType NAME
NAME_VALUEback to summary
public static final TableEntry.EntryType NAME_VALUE
NEITHERback to summary
public static final TableEntry.EntryType NEITHER

Constructor Detail

EntryTypeback to summary
private EntryType()

Method Detail

valueOfback to summary
public static TableEntry.EntryType valueOf(String name)
valuesback to summary
public static TableEntry.EntryType[] values()