|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjetbrains.buildServer.vcs.ChangeStatusListBuilder
public class ChangeStatusListBuilder
Object builds a ChangeStatus list from
list of SVcsModification according to specified settings
(e.g. lower and upper bound, size).
| Nested Class Summary | |
|---|---|
static class |
ChangeStatusListBuilder.Id
Unique id of VCS modification. |
| Constructor Summary | |
|---|---|
ChangeStatusListBuilder(ChangeStatusProvider changeStatusProvider)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChangeStatusListBuilder(@NotNull
ChangeStatusProvider changeStatusProvider)
| Method Detail |
|---|
@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 above
public ChangeStatusListBuilder setSize(int size)
ChangeStatus
size - see above
public ChangeStatusListBuilder setLowerBound(ChangeStatusListBuilder.Id id)
id - id of the lower bound
public 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 bound
public ChangeStatusListBuilder setUpperBound(ChangeStatusListBuilder.Id id)
id - id of the upper bound
public 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 bound
public ChangeStatusListBuilder addFilter(Filter<SVcsModification> filter)
filter - VCS modification filter
public ChangeStatusListBuilder addFilter(BuildTypeFilter buildTypeFilter)
buildTypeFilter - BuildType filter
public ChangeStatusListBuilder clearFilters()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||