Package io.github.mahmoudimus.http3
Record Class Http3Frame.Settings
java.lang.Object
java.lang.Record
io.github.mahmoudimus.http3.Http3Frame.Settings
- Record Components:
values- setting identifiers and values, in order
- All Implemented Interfaces:
Http3Frame
- Enclosing interface:
Http3Frame
public static record Http3Frame.Settings(Map<Long,Long> values)
extends Record
implements Http3Frame
SETTINGS (§7.2.4), the first frame on each control stream and sent once.
values maps
setting identifiers to their values in the order they appeared; unknown and reserved
identifiers are kept so that callers can see and relay them, and must otherwise be ignored.
See Http3Settings for the defined ones.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.github.mahmoudimus.http3.Http3Frame
Http3Frame.CancelPush, Http3Frame.Data, Http3Frame.GoAway, Http3Frame.Headers, Http3Frame.MaxPushId, Http3Frame.PushPromise, Http3Frame.Settings, Http3Frame.Unknown -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.longtype()The frame type code: one of theHttp3FrameTypeconstants, or any other forHttp3Frame.Unknown.values()Returns the value of thevaluesrecord component.
-
Constructor Details
-
Settings
Creates SETTINGS.- Parameters:
values- setting identifiers and values, each 0 to 2^62-1, copied
-
-
Method Details
-
type
public long type()Description copied from interface:Http3FrameThe frame type code: one of theHttp3FrameTypeconstants, or any other forHttp3Frame.Unknown.- Specified by:
typein interfaceHttp3Frame- Returns:
- the type code
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
values
Returns the value of thevaluesrecord component.- Returns:
- the value of the
valuesrecord component
-