public abstract class AbstractDateRangeBuilder extends Object implements DateRangeBuilder
Modifier and Type | Field and Description |
---|---|
protected static Long |
MINUS_1
Convenient constant for date range builders to use as the initial value
provided to
ChangeHistoryItem.Builder#withId(Long) and
ChangeHistoryItem.Builder#inChangeGroup(Long) , since the
long (non-object) argument forms have been deprecated. |
Constructor and Description |
---|
AbstractDateRangeBuilder(String field,
String emptyValue) |
Modifier and Type | Method and Description |
---|---|
List<ChangeHistoryItem> |
buildDateRanges(Issue issue,
List<ChangeHistoryItem> items) |
protected ChangeHistoryItem.Builder |
changeItemBuilder(Issue issue) |
protected ChangeHistoryItem |
createChangeItem(ChangeHistoryItem changeItem,
Timestamp nextChange) |
protected abstract ChangeHistoryItem |
createInitialChangeItem(Issue issue) |
String |
getEmptyValue() |
protected String |
getField() |
protected static final Long MINUS_1
ChangeHistoryItem.Builder#withId(Long)
and
ChangeHistoryItem.Builder#inChangeGroup(Long)
, since the
long
(non-object) argument forms have been deprecated.public List<ChangeHistoryItem> buildDateRanges(Issue issue, List<ChangeHistoryItem> items)
buildDateRanges
in interface DateRangeBuilder
issue
- The issue that is being currently indexeditems
- A Collection of all the @link ChangeHistoryItem)s for that issue.protected ChangeHistoryItem createChangeItem(ChangeHistoryItem changeItem, Timestamp nextChange)
protected ChangeHistoryItem.Builder changeItemBuilder(Issue issue)
protected abstract ChangeHistoryItem createInitialChangeItem(Issue issue)
protected String getField()
public String getEmptyValue()
getEmptyValue
in interface DateRangeBuilder
Copyright © 2002-2023 Atlassian. All Rights Reserved.