java.lang.Object
edu.ntnu.idata1002.prosjekt2021.model.JournalEntry
public class JournalEntry
extends java.lang.Object
Represents a journal entry. Holds information about the time
of the journal entry and the text in the journal entry.
-
Constructor Summary
Constructors Constructor Description JournalEntry(java.lang.String journalEntry, java.lang.String usersName)
Creates an instance of journal entry. -
Method Summary
Modifier and Type Method Description java.lang.String
getEntryTime()
Returns the time of the entry.java.lang.String
getJournalEntry()
Returns the text in this jounral entry.java.lang.String
getUsersName()
Returns the name of the user who made this journal entry.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
JournalEntry
public JournalEntry(java.lang.String journalEntry, java.lang.String usersName)Creates an instance of journal entry.- Parameters:
journalEntry
- the text in the journal entry.usersName
- the name of the user who made the entry.
-
-
Method Details
-
getEntryTime
public java.lang.String getEntryTime()Returns the time of the entry.- Returns:
- time for when this jorunal entry was created.
-
getJournalEntry
public java.lang.String getJournalEntry()Returns the text in this jounral entry.- Returns:
- text in thos journal entry.
-
getUsersName
public java.lang.String getUsersName()Returns the name of the user who made this journal entry.- Returns:
- name of the user who made this journal entry.
-