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 notejava.lang.String
toString()
-
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 notecontent
- content of notedate
- 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 classjava.lang.Object
-