ch.claudio.contactdb.data
Class Message
java.lang.Object
ch.claudio.contactdb.data.Message
public class Message
- extends java.lang.Object
Holds a message sent from one person to others. Each message has a sender
identity associated and the time it was sent. The time might be null, if it
is unknown when the information was prodced. This might be used to store
information someone gave out e.g. on her or his profile.
- Version:
- $Id: Message.java 32 2006-07-10 23:51:07Z $
- Author:
- Claudio Nieder
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Message
public Message(FuzzyDate timeArg,
java.lang.String messageArg,
Identity senderArg)
- Parameters:
timeArg
- The time the information was sent. May be nullmessageArg
- The message itself.senderArg
- The identity of the sender.
getMessage
public java.lang.String getMessage()
- Returns:
- the message
getSender
public Identity getSender()
- Returns:
- the sender
getTime
public FuzzyDate getTime()
- Returns:
- the time
getMessageDigest
public byte[] getMessageDigest()
- Returns:
- the messageDigest
getComment
public java.lang.String getComment()
- Returns:
- the comment
setComment
public void setComment(java.lang.String commentArg)
- Parameters:
commentArg
- the comment to set
main
public static void main(java.lang.String[] args)
- Print license.
- Parameters:
args
- ignored