|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.dream.message.MessageUtil
public final class MessageUtil
Utility methods for content based message comparison.
Method Summary | |
---|---|
static boolean |
equals(Message message1,
MessageManager messageManager1Itf,
Message message2,
MessageManager messageManager2Itf)
Returns true if the two messages has the same content. |
static int |
hashCode(Message message,
MessageManager messageManagerItf)
Returns an hashCode of the given message based on its
content. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean equals(Message message1, MessageManager messageManager1Itf, Message message2, MessageManager messageManager2Itf)
true
if the two messages has the same content. This
method requires that every chunks implements correctly the
Object.equals(Object)
method.
message1
- a messagemessageManager1Itf
- the message manager in which the
message1
ismessage2
- an other messagemessageManager2Itf
- the message manager in which the
message2
is
true
if the two messages has the same content.public static int hashCode(Message message, MessageManager messageManagerItf)
hashCode
of the given message based on its
content. This Object.hashCode()
method is coherent with the
equals
method. This means that if
equals(m1, m2) == true
then
hashCode(m1) == hashCode(m2)
.
message
- a message.messageManagerItf
- the message manager in which the message is
hashCode
of the given message.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |