public class Repetition
extends java.lang.Object
Constructor and Description |
---|
Repetition(Habit habit,
long timestamp)
Creates a new repetition with given parameters.
|
Modifier and Type | Method and Description |
---|---|
Habit |
getHabit() |
long |
getTimestamp() |
public Repetition(Habit habit, long timestamp)
The timestamp corresponds to the days this repetition occurred. Time of day must be midnight (UTC).
habit
- the habit to which this repetition belongs.timestamp
- the time this repetition occurred.public Habit getHabit()
public long getTimestamp()