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
Changeset s that were added to the cache |
java.util.Collection<Changeset> |
getRemovedChangesets()
Gets a list of
Changeset s that were removed from the cache |
ChangesetCache |
getSource()
The changeset cache the change happened in.
|
java.util.Collection<Changeset> |
getUpdatedChangesets()
Gets a list of
Changeset s that were changed |
boolean |
isEmpty()
Checks if this event contains any
Changeset s |
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)
ChangesetCacheEvent
source
- The source changesetpublic ChangesetCache getSource()
ChangesetCacheEvent
getSource
in interface ChangesetCacheEvent
ChangesetCache
public java.util.Collection<Changeset> getAddedChangesets()
ChangesetCacheEvent
Changeset
s that were added to the cachegetAddedChangesets
in interface ChangesetCacheEvent
public java.util.Collection<Changeset> getRemovedChangesets()
ChangesetCacheEvent
Changeset
s that were removed from the cachegetRemovedChangesets
in interface ChangesetCacheEvent
public java.util.Collection<Changeset> getUpdatedChangesets()
ChangesetCacheEvent
Changeset
s that were changedgetUpdatedChangesets
in interface ChangesetCacheEvent
public void rememberAddedChangeset(Changeset cs)
Changeset
to the added listcs
- the Changeset
public void rememberUpdatedChangeset(Changeset cs)
Changeset
to the updated listcs
- the Changeset
public void rememberRemovedChangeset(Changeset cs)
Changeset
to the removed listcs
- the Changeset