Package ceit.model

Class Note

java.lang.Object
ceit.model.Note
All Implemented Interfaces:
java.io.Serializable

public class Note
extends java.lang.Object
implements java.io.Serializable
provide a structure for note
See Also:
Serialized Form
  • Constructor Summary

    Constructors 
    Constructor Description
    Note​(java.lang.String title, java.lang.String content, java.lang.String date)
    creat a new note with given data
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getContent()
    get content of note
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Note

      public Note​(java.lang.String title, java.lang.String content, java.lang.String date)
      creat a new note with given data
      Parameters:
      title - title of note
      content - content of note
      date - date of note
  • Method Details

    • getContent

      public java.lang.String getContent()
      get content of note
      Returns:
      string value of content
    • toString

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