public class DefaultChangesetCacheEvent extends java.lang.Object implements ChangesetCacheEvent
ChangesetCache| Modifier and Type | Field and Description |
|---|---|
private java.util.Set<Changeset> |
added |
private java.util.Set<Changeset> |
modified |
private java.util.Set<Changeset> |
removed |
private ChangesetCache |
source |
| Constructor and Description |
|---|
DefaultChangesetCacheEvent(ChangesetCache source)
Creates a basic, empty
ChangesetCacheEvent |
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<Changeset> |
getAddedChangesets()
Gets a list of
Changesets that were added to the cache |
java.util.Collection<Changeset> |
getRemovedChangesets()
Gets a list of
Changesets that were removed from the cache |
ChangesetCache |
getSource()
The changeset cache the change happened in.
|
java.util.Collection<Changeset> |
getUpdatedChangesets()
Gets a list of
Changesets that were changed |
boolean |
isEmpty()
Checks if this event contains any
Changesets |
void |
rememberAddedChangeset(Changeset cs)
Adds a
Changeset to the added list |
void |
rememberRemovedChangeset(Changeset cs)
Adds a
Changeset to the removed list |
void |
rememberUpdatedChangeset(Changeset cs)
Adds a
Changeset to the updated list |
private final ChangesetCache source
public DefaultChangesetCacheEvent(ChangesetCache source)
ChangesetCacheEventsource - The source changesetpublic ChangesetCache getSource()
ChangesetCacheEventgetSource in interface ChangesetCacheEventChangesetCachepublic java.util.Collection<Changeset> getAddedChangesets()
ChangesetCacheEventChangesets that were added to the cachegetAddedChangesets in interface ChangesetCacheEventpublic java.util.Collection<Changeset> getRemovedChangesets()
ChangesetCacheEventChangesets that were removed from the cachegetRemovedChangesets in interface ChangesetCacheEventpublic java.util.Collection<Changeset> getUpdatedChangesets()
ChangesetCacheEventChangesets that were changedgetUpdatedChangesets in interface ChangesetCacheEventpublic void rememberAddedChangeset(Changeset cs)
Changeset to the added listcs - the Changesetpublic void rememberUpdatedChangeset(Changeset cs)
Changeset to the updated listcs - the Changesetpublic void rememberRemovedChangeset(Changeset cs)
Changeset to the removed listcs - the Changeset