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.| Modifier and Type | Field and Description |
|---|---|
private java.util.Collection<java.lang.String> |
deleted |
private java.util.Collection<java.lang.String> |
modified |
| Constructor and Description |
|---|
WorkingTreeModifiedEvent(java.util.Collection<java.lang.String> modified,
java.util.Collection<java.lang.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.
|
java.util.Collection<java.lang.String> |
getDeleted()
Retrieves the
Collection of repository-relative paths
of files that were deleted. |
java.lang.Class<WorkingTreeModifiedListener> |
getListenerType()
Get type of listener this event dispatches to
|
java.util.Collection<java.lang.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, toStringprivate java.util.Collection<java.lang.String> modified
private java.util.Collection<java.lang.String> deleted
public WorkingTreeModifiedEvent(java.util.Collection<java.lang.String> modified,
java.util.Collection<java.lang.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 java.util.Collection<java.lang.String> getModified()
Collection of repository-relative paths
of files that were modified (added or updated).@NonNull public java.util.Collection<java.lang.String> getDeleted()
Collection of repository-relative paths
of files that were deleted.public java.lang.Class<WorkingTreeModifiedListener> getListenerType()
getListenerType in class RepositoryEvent<WorkingTreeModifiedListener>public void dispatch(WorkingTreeModifiedListener listener)
dispatch in class RepositoryEvent<WorkingTreeModifiedListener>listener - listener that wants this event.