Package org.openstreetmap.josm.data.osm
Class DefaultChangesetCacheEvent
java.lang.Object
org.openstreetmap.josm.data.osm.DefaultChangesetCacheEvent
- All Implemented Interfaces:
ChangesetCacheEvent
The default event implementation that is used to indicate a change in the
ChangesetCache-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets a list ofChangesets that were added to the cacheGets a list ofChangesets that were removed from the cacheThe changeset cache the change happened in.Gets a list ofChangesets that were changedbooleanisEmpty()Checks if this event contains anyChangesetsvoidAdds aChangesetto the added listvoidAdds aChangesetto the removed listvoidAdds aChangesetto the updated list
-
Field Details
-
added
-
modified
-
removed
-
source
-
-
Constructor Details
-
DefaultChangesetCacheEvent
Creates a basic, emptyChangesetCacheEvent- Parameters:
source- The source changeset
-
-
Method Details
-
getSource
Description copied from interface:ChangesetCacheEventThe changeset cache the change happened in.- Specified by:
getSourcein interfaceChangesetCacheEvent- Returns:
- The
ChangesetCache
-
getAddedChangesets
Description copied from interface:ChangesetCacheEventGets a list ofChangesets that were added to the cache- Specified by:
getAddedChangesetsin interfaceChangesetCacheEvent- Returns:
- The changesets
-
getRemovedChangesets
Description copied from interface:ChangesetCacheEventGets a list ofChangesets that were removed from the cache- Specified by:
getRemovedChangesetsin interfaceChangesetCacheEvent- Returns:
- The changesets
-
getUpdatedChangesets
Description copied from interface:ChangesetCacheEventGets a list ofChangesets that were changed- Specified by:
getUpdatedChangesetsin interfaceChangesetCacheEvent- Returns:
- The changesets
-
rememberAddedChangeset
Adds aChangesetto the added list- Parameters:
cs- theChangeset
-
rememberUpdatedChangeset
Adds aChangesetto the updated list- Parameters:
cs- theChangeset
-
rememberRemovedChangeset
Adds aChangesetto the removed list- Parameters:
cs- theChangeset
-
isEmpty
Checks if this event contains anyChangesets- Returns:
trueif changesets were added
-