public final class ProjectChangeset extends Object
Constructor and Description |
---|
ProjectChangeset() |
Modifier and Type | Method and Description |
---|---|
static ProjectChangeset |
changeset() |
Iterable<String> |
getAllChangeDescriptions()
Returns the toString() description of every change in the changeset.
|
Iterable<String> |
getChangeDescriptionsOrSummaries()
Returns the toString() description of every change in the changeset, sorted by type,
except for changes that implement
SummarizeAsGroup , which will instead be counted. |
Iterable<ProjectChange> |
getItems()
Returns all changes in the changeset.
|
<T extends ProjectChange> |
getItems(Class<T> itemClass)
Returns only the changes of the specified class.
|
boolean |
hasItems(Class<? extends ProjectChange> itemClass)
Returns true if the changeset contains any items of the specified class.
|
String |
toString() |
ProjectChangeset |
with(Iterable<? extends ProjectChange> newChanges)
Returns a copy of this changeset with the specified item(s) added.
|
ProjectChangeset |
with(ProjectChange... newChanges)
Returns a copy of this changeset with the specified item(s) added.
|
ProjectChangeset |
with(ProjectChangeset other)
Returns a changeset consisting of this changeset plus all items from another changeset.
|
public static ProjectChangeset changeset()
public Iterable<ProjectChange> getItems()
public <T extends ProjectChange> Iterable<T> getItems(Class<T> itemClass)
public boolean hasItems(Class<? extends ProjectChange> itemClass)
public ProjectChangeset with(ProjectChange... newChanges)
public ProjectChangeset with(Iterable<? extends ProjectChange> newChanges)
public ProjectChangeset with(ProjectChangeset other)
public Iterable<String> getAllChangeDescriptions()
public Iterable<String> getChangeDescriptionsOrSummaries()
SummarizeAsGroup
, which will instead be counted.Copyright © 2017 Atlassian. All rights reserved.