Record Class SignedMessageIn<T extends BabelMessage>
java.lang.Object
java.lang.Record
pt.unl.fct.di.novasys.babel2.core.signed.events.SignedMessageIn<T>
- Type Parameters:
T- the concrete type of the inner payload message- Record Components:
message- the signed message envelopesender- the sender node identity
- All Implemented Interfaces:
BabelEvent, ProtocolEvent
public record SignedMessageIn<T extends BabelMessage>(SignedBabelMessage<T extends BabelMessage> message, BabelNode sender)
extends Record
implements ProtocolEvent
Protocol event delivered when an inbound signed message arrives.
-
Constructor Summary
ConstructorsConstructorDescriptionSignedMessageIn(SignedBabelMessage<T> message, BabelNode sender) Creates an instance of aSignedMessageInrecord class. -
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.message()Returns the value of themessagerecord component.sender()Returns the value of thesenderrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
message
-
sender
-