public class WorkingTreeModifiedEvent extends RepositoryEvent<WorkingTreeModifiedListener>
RepositoryEvent describing changes to the
working tree. It is fired whenever a
DirCacheCheckout modifies
(adds/deletes/updates) files in the working tree.| Constructor and Description |
|---|
WorkingTreeModifiedEvent(Collection<String> modified,
Collection<String> deleted)
Creates a new
WorkingTreeModifiedEvent
with the given collections. |
| Modifier and Type | Method and Description |
|---|---|
void |
dispatch(WorkingTreeModifiedListener listener)
Dispatch this event to the given listener.
|
Collection<String> |
getDeleted()
Retrieves the
Collection of repository-relative paths
of files that were deleted. |
Class<WorkingTreeModifiedListener> |
getListenerType()
Get type of listener this event dispatches to
|
Collection<String> |
getModified()
Retrieves the
Collection of repository-relative paths
of files that were modified (added or updated). |
boolean |
isEmpty()
Determines whether there are any changes recorded in this event.
|
getRepository, setRepository, toStringpublic WorkingTreeModifiedEvent(Collection<String> modified, Collection<String> deleted)
WorkingTreeModifiedEvent
with the given collections.modified - repository-relative paths that were added or updateddeleted - repository-relative paths that were deletedpublic boolean isEmpty()
true if no files were modified or deleted, false
otherwise@NonNull public Collection<String> getModified()
Collection of repository-relative paths
of files that were modified (added or updated).@NonNull public Collection<String> getDeleted()
Collection of repository-relative paths
of files that were deleted.public Class<WorkingTreeModifiedListener> getListenerType()
getListenerType in class RepositoryEvent<WorkingTreeModifiedListener>public void dispatch(WorkingTreeModifiedListener listener)
dispatch in class RepositoryEvent<WorkingTreeModifiedListener>listener - listener that wants this event.Copyright © 2018 Eclipse JGit Project. All rights reserved.