public final class PluginProjectChangeset extends Object
PluginModuleCreator return an instance
of this class rather than performing the changes directly.
This class is immutable; all of its non-getter methods return new instances.
This class also contains static factory methods for all supported change types.
| Constructor and Description |
|---|
PluginProjectChangeset() |
| Modifier and Type | Method and Description |
|---|---|
static PluginProjectChangeset |
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<PluginProjectChange> |
getItems()
Returns all changes in the changeset.
|
<T extends PluginProjectChange> |
getItems(Class<T> itemClass)
Returns only the changes of the specified class.
|
boolean |
hasItems(Class<? extends PluginProjectChange> itemClass)
Returns true if the changeset contains any items of the specified class.
|
String |
toString() |
PluginProjectChangeset |
with(Iterable<? extends PluginProjectChange> newChanges)
Returns a copy of this changeset with the specified item(s) added.
|
PluginProjectChangeset |
with(PluginProjectChange... newChanges)
Returns a copy of this changeset with the specified item(s) added.
|
PluginProjectChangeset |
with(PluginProjectChangeset other)
Returns a changeset consisting of this changeset plus all items from another changeset.
|
public static PluginProjectChangeset changeset()
public Iterable<PluginProjectChange> getItems()
public <T extends PluginProjectChange> Iterable<T> getItems(Class<T> itemClass)
public boolean hasItems(Class<? extends PluginProjectChange> itemClass)
public PluginProjectChangeset with(PluginProjectChange... newChanges)
public PluginProjectChangeset with(Iterable<? extends PluginProjectChange> newChanges)
public PluginProjectChangeset with(PluginProjectChangeset other)
public Iterable<String> getAllChangeDescriptions()
public Iterable<String> getChangeDescriptionsOrSummaries()
SummarizeAsGroup, which will instead be counted.Copyright © 2015 Atlassian. All rights reserved.