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 ifid
is a valid identifier.- Parameters:
id
- string to be validated- Returns:
true
if valid. Otherwisefalse
-
of
-