Package berlin.yuna.survey.model
Class HistoryItemBase<T>
java.lang.Object
berlin.yuna.survey.model.HistoryItemBase<T>
- All Implemented Interfaces:
Comparable<HistoryItemBase<?>>
- Direct Known Subclasses:
HistoryItem
,HistoryItemJson
The
HistoryItem
is used to keep track of all answers/transitions in the flow-
Nested Class Summary
-
Constructor Summary
ModifierConstructorDescriptionHistoryItemBase
(String label) HistoryItemBase
(String label, T answer, HistoryItemBase.State state) protected
HistoryItemBase
(String label, T answer, LocalDateTime createdAt, HistoryItemBase.State state) -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
getLabel()
getState()
int
hashCode()
boolean
boolean
boolean
isDraft()
boolean
boolean
boolean
boolean
setCreatedAt
(LocalDateTime createdAt) setState
(HistoryItemBase.State state) toString()
-
Constructor Details
-
HistoryItemBase
public HistoryItemBase() -
HistoryItemBase
-
HistoryItemBase
-
HistoryItemBase
protected HistoryItemBase(String label, T answer, LocalDateTime createdAt, HistoryItemBase.State state)
-
-
Method Details
-
setLabel
-
setAnswer
-
setCreatedAt
-
getLabel
-
getAnswer
-
getCreatedAt
-
getState
-
setState
-
isNotDraft
public boolean isNotDraft() -
isDraft
public boolean isDraft() -
isNotCurrent
public boolean isNotCurrent() -
isCurrent
public boolean isCurrent() -
isNotAnswered
public boolean isNotAnswered() -
isAnswered
public boolean isAnswered() -
match
-
equals
-
hashCode
public int hashCode() -
toString
-
compareTo
- Specified by:
compareTo
in interfaceComparable<T>
-