The equals method compares this Message object with another object for equality.
equals
Message
true if the objects are equal, false otherwise.
true
false
The object to compare with this Message object.