All Implemented Interfaces:
Serializable

public class Note extends Referenceable
Note defines the properties of a single note in a note log.
See Also:
  • Field Details

    • text

      protected String text
    • lastUpdate

      protected Date lastUpdate
    • user

      protected String user
  • Constructor Details

    • Note

      public Note()
      Default constructor
    • Note

      public Note(Note templateNote)
      Copy/clone constructor.
      Parameters:
      templateNote - note to copy
  • Method Details

    • getText

      public String getText()
      Return the text of the note.
      Returns:
      String text
    • setText

      public void setText(String text)
      Set up the text of the note.
      Parameters:
      text - String text
    • getLastUpdate

      public Date getLastUpdate()
      Return the last time a change was made to this note.
      Returns:
      Date last updated
    • setLastUpdate

      public void setLastUpdate(Date lastUpdate)
      Set up the last time a change was made to this note.
      Parameters:
      lastUpdate - Date last updated
    • getUser

      public String getUser()
      Return the user id of the person who created the note. Null means the user id is not known.
      Returns:
      String user making notes
    • setUser

      public void setUser(String user)
      Set up the user id of the person who created the note. Null means the user id is not known.
      Parameters:
      user - String user making notes
    • toString

      public String toString()
      Standard toString method.
      Overrides:
      toString in class Referenceable
      Returns:
      print out of variables in a JSON-style
    • equals

      public boolean equals(Object objectToCompare)
      Compare the values of the supplied object with those stored in the current object.
      Overrides:
      equals in class Referenceable
      Parameters:
      objectToCompare - supplied object
      Returns:
      boolean result of comparison
    • hashCode

      public int hashCode()
      Hash of properties
      Overrides:
      hashCode in class Referenceable
      Returns:
      int