com.partnersoft.v3x.data
Class Note

java.lang.Object
  extended by com.partnersoft.v3x.data.Note
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable

public class Note
extends java.lang.Object
implements java.io.Serializable, java.lang.Comparable

A timestamped note.

See Also:
Serialized Form

Constructor Summary
Note()
          Create a new Note.
Note(java.lang.String author, java.lang.String text)
          Create a new Note.
 
Method Summary
 int compareTo(java.lang.Object nother)
           
 boolean equals(java.lang.Object nother)
           
 java.lang.String getAuthor()
          Name of person making note.
 java.lang.String getText()
          Text of note.
 long getTimestamp()
          Timestamp when note was made; used as unique ID.
 int hashCode()
           
 void setAuthor(java.lang.String newAuthor)
          Name of person making note.
 void setText(java.lang.String newText)
          Text of note.
 void setTimestamp(long newTimestamp)
          Timestamp when note was made; used as unique ID.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Note

public Note()
Create a new Note.


Note

public Note(java.lang.String author,
            java.lang.String text)
Create a new Note.

Method Detail

compareTo

public int compareTo(java.lang.Object nother)
Specified by:
compareTo in interface java.lang.Comparable

equals

public boolean equals(java.lang.Object nother)
Overrides:
equals in class java.lang.Object

getAuthor

public java.lang.String getAuthor()
Name of person making note.


setAuthor

public void setAuthor(java.lang.String newAuthor)
Name of person making note.


getText

public java.lang.String getText()
Text of note.


setText

public void setText(java.lang.String newText)
Text of note.


getTimestamp

public long getTimestamp()
Timestamp when note was made; used as unique ID.


setTimestamp

public void setTimestamp(long newTimestamp)
Timestamp when note was made; used as unique ID.


hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object