Record Class PacketSpace.Sendable
java.lang.Object
java.lang.Record
io.github.mahmoudimus.quic.connection.PacketSpace.Sendable
- Record Components:
acks- whether an ACK must be sent, even aloneother- whether frames other than ACK are waiting
- Enclosing class:
PacketSpace
What a space has to send.
-
Constructor Summary
ConstructorsConstructorDescriptionSendable(boolean acks, boolean other) Creates an instance of aSendablerecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanacks()Returns the value of theacksrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisEmpty()Whether nothing is waiting.booleanother()Returns the value of theotherrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
isEmpty
public boolean isEmpty()Whether nothing is waiting.- Returns:
- true if neither ACKs nor other frames are due
-
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 '=='. -
acks
public boolean acks()Returns the value of theacksrecord component.- Returns:
- the value of the
acksrecord component
-
other
public boolean other()Returns the value of theotherrecord component.- Returns:
- the value of the
otherrecord component
-