Package io.github.mahmoudimus.quic.frame
Record Class Frame.EcnCounts
java.lang.Object
java.lang.Record
io.github.mahmoudimus.quic.frame.Frame.EcnCounts
- Record Components:
ect0- packets received with the ECT(0) codepointect1- packets received with the ECT(1) codepointce- packets received with the CE codepoint
- Enclosing interface:
Frame
The ECN counts of an ACK frame of type 0x03 (RFC 9000 section 19.3.2).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongce()Returns the value of thecerecord component.longect0()Returns the value of theect0record component.longect1()Returns the value of theect1record component.final 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.
-
Constructor Details
-
EcnCounts
public EcnCounts(long ect0, long ect1, long ce) ECN counts.- Parameters:
ect0- packets received with the ECT(0) codepointect1- packets received with the ECT(1) codepointce- packets received with the CE codepoint
-
-
Method Details
-
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 with '=='. -
ect0
public long ect0()Returns the value of theect0record component.- Returns:
- the value of the
ect0record component
-
ect1
public long ect1()Returns the value of theect1record component.- Returns:
- the value of the
ect1record component
-
ce
public long ce()Returns the value of thecerecord component.- Returns:
- the value of the
cerecord component
-