public class ChangeStatusListBuilder
extends java.lang.Object
ChangeStatus
list from
list of SVcsModification
according to specified settings
(e.g. lower and upper bound, size).Modifier and Type | Class and Description |
---|---|
static class |
ChangeStatusListBuilder.Id
Unique id of VCS modification.
|
Constructor and Description |
---|
ChangeStatusListBuilder(ChangeStatusProvider changeStatusProvider) |
Modifier and Type | Method and Description |
---|---|
ChangeStatusListBuilder |
addFilter(BuildTypeFilter buildTypeFilter)
Add a BuildType filter.
|
ChangeStatusListBuilder |
addFilter(Filter<SVcsModification> filter)
Add a VCS modification filter.
|
java.util.List<ChangeStatus> |
build()
Returns ChangeStatus list according to specified settings.
|
ChangeStatusListBuilder |
clearFilters()
Clear VCS modification filters
|
ChangeStatusListBuilder |
setLowerBound(ChangeStatusListBuilder.Id id)
Set the lower bound id in VCS modification list.
|
ChangeStatusListBuilder |
setLowerBound(ChangeStatusListBuilder.Id id,
boolean inclusive)
Set the lower bound id in VCS modification list.
|
ChangeStatusListBuilder |
setSize(int size)
Set size of resulting list of
ChangeStatus |
ChangeStatusListBuilder |
setSource(java.util.List<SVcsModification> modifications)
Set list of
SVcsModification from which resulting list of
ChangeStatus will be built. |
ChangeStatusListBuilder |
setUpperBound(ChangeStatusListBuilder.Id id)
Set the upper bound id in VCS modification list.
|
ChangeStatusListBuilder |
setUpperBound(ChangeStatusListBuilder.Id id,
boolean inclusive)
Set the upper bound id in VCS modification list.
|
public ChangeStatusListBuilder(@NotNull ChangeStatusProvider changeStatusProvider)
@NotNull public java.util.List<ChangeStatus> build()
public ChangeStatusListBuilder setSource(java.util.List<SVcsModification> modifications)
SVcsModification
from which resulting list of
ChangeStatus
will be built.
List of VCS modifications must be sorted by modification id and must contain
unique modifications only (i.e. for any two modifications m1
and
m2
from the list m1.getId() != m2.getId()
).
These conditions should be checked by a caller.
modifications
- see abovepublic ChangeStatusListBuilder setSize(int size)
ChangeStatus
size
- see abovepublic ChangeStatusListBuilder setLowerBound(ChangeStatusListBuilder.Id id)
id
- id of the lower boundpublic ChangeStatusListBuilder setLowerBound(ChangeStatusListBuilder.Id id, boolean inclusive)
inclusive
is set to true
and lower bound modification is not duplicate of some earlier modification in the source list.id
- id of the lower boundinclusive
- flag to include the lower boundpublic ChangeStatusListBuilder setUpperBound(ChangeStatusListBuilder.Id id)
id
- id of the upper boundpublic ChangeStatusListBuilder setUpperBound(ChangeStatusListBuilder.Id id, boolean inclusive)
inclusive
is set to true
and upper bound modification is not duplicate of some earlier modification in the source list.id
- id of the upper boundinclusive
- flag to include the upper boundpublic ChangeStatusListBuilder addFilter(Filter<SVcsModification> filter)
filter
- VCS modification filterpublic ChangeStatusListBuilder addFilter(BuildTypeFilter buildTypeFilter)
buildTypeFilter
- BuildType filterpublic ChangeStatusListBuilder clearFilters()