Class MessageId
java.lang.Object
org.drasyl.peer.connection.message.MessageId
A
Message is uniquely identified by its 24 lower-case hex digit identifier.
This is an immutable object.
-
Method Details
-
hashCode
public int hashCode() -
equals
-
toString
-
randomMessageId
Static factory to retrieve a randomly generatedMessageId.- Returns:
- A randomly generated
MessageId
-
isValidMessageId
Checks ifidis a valid identifier.- Parameters:
id- string to be validated- Returns:
trueif valid. Otherwisefalse
-
of
-