public class Diary
extends java.lang.Object
| Constructor and Description |
|---|
Diary(FetchProjects fetcher,
Store store)
FetchProject is an object that retrieves a list of Projects (typically
from the internet).
|
| Modifier and Type | Method and Description |
|---|---|
void |
addEntry(Project project,
java.lang.String subject,
java.lang.String description,
java.time.LocalDateTime start,
java.time.LocalDateTime end)
Creates a fresh entry and stores it in the storage
|
java.util.List<DiaryEntry> |
getEntries()
Returns a list of all entries
|
java.util.List<Project> |
getProjects()
Returns a list of all projects
|
java.util.HashMap<Project,java.lang.Long> |
getStatistic()
Computes the data required for the statistics view.
|
void |
store()
Saves the entries into a storage (typically a file).
|
public Diary(FetchProjects fetcher, Store store)
public void addEntry(Project project, java.lang.String subject, java.lang.String description, java.time.LocalDateTime start, java.time.LocalDateTime end)
public void store()
public java.util.List<Project> getProjects()
public java.util.List<DiaryEntry> getEntries()
public java.util.HashMap<Project,java.lang.Long> getStatistic()