Class MatchConditionHistoryBuilder
java.lang.Object
com.atlassian.servicedesk.api.sla.condition.MatchConditionHistoryBuilder
Reconstructed history data for the given condition
-
Method Summary
Modifier and TypeMethodDescriptionaddEntry
(org.joda.time.DateTime dateTime, MatchEvent matchEvent) Add an entry to the history.build()
Build a MatchConditionHistory objectboolean
isEmpty()
Is the history currently emptystatic MatchConditionHistoryBuilder
Create a new builder for a match history
-
Method Details
-
newBuilder
Create a new builder for a match history -
addEntry
public MatchConditionHistoryBuilder addEntry(org.joda.time.DateTime dateTime, MatchEvent matchEvent) Add an entry to the history. Adding multiple entries for the same DateTime will result in only the last one to be retained. -
isEmpty
public boolean isEmpty()Is the history currently empty -
build
Build a MatchConditionHistory object
-