Class PongMessage
- java.lang.Object
-
- org.drasyl.peer.connection.message.AbstractMessage
-
- org.drasyl.peer.connection.message.PongMessage
-
- All Implemented Interfaces:
Message
,ResponseMessage<PingMessage>
public class PongMessage extends AbstractMessage
A message representing a PONG response.
-
-
Field Summary
Fields Modifier and Type Field Description protected MessageId
correspondingId
-
Fields inherited from class org.drasyl.peer.connection.message.AbstractMessage
id
-
-
Constructor Summary
Constructors Constructor Description PongMessage(MessageId correspondingId)
PongMessage(MessageId id, MessageId correspondingId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
MessageId
getCorrespondingId()
int
hashCode()
String
toString()
-
Methods inherited from class org.drasyl.peer.connection.message.AbstractMessage
getId
-
-
-
-
Field Detail
-
correspondingId
protected final MessageId correspondingId
-
-
Method Detail
-
toString
public String toString()
- Overrides:
toString
in classAbstractMessage
-
getCorrespondingId
public MessageId getCorrespondingId()
- Specified by:
getCorrespondingId
in interfaceResponseMessage<R extends RequestMessage>
- Returns:
- the id of the
RequestMessage
to which this response corresponds
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractMessage
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classAbstractMessage
-
-