Record Class Http2FrameHeader
java.lang.Object
java.lang.Record
cool.scx.http.x.http2.Http2FrameHeader
public record Http2FrameHeader(int length, Http2FrameType type, byte flags, int streamId)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionHttp2FrameHeader(int length, Http2FrameType type, byte flags, int streamId) Creates an instance of aHttp2FrameHeaderrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.byteflags()Returns the value of theflagsrecord component.final inthashCode()Returns a hash code value for this object.intlength()Returns the value of thelengthrecord component.static Http2FrameHeaderof(byte[] data) intstreamId()Returns the value of thestreamIdrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
Http2FrameHeader
Creates an instance of aHttp2FrameHeaderrecord class.- Parameters:
length- the value for thelengthrecord componenttype- the value for thetyperecord componentflags- the value for theflagsrecord componentstreamId- the value for thestreamIdrecord component
-
-
Method Details
-
of
-
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
length
public int length()Returns the value of thelengthrecord component.- Returns:
- the value of the
lengthrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
flags
public byte flags()Returns the value of theflagsrecord component.- Returns:
- the value of the
flagsrecord component
-
streamId
public int streamId()Returns the value of thestreamIdrecord component.- Returns:
- the value of the
streamIdrecord component
-