Package org.eclipse.jgit.events
Class IndexChangedEvent
java.lang.Object
org.eclipse.jgit.events.RepositoryEvent<IndexChangedListener>
org.eclipse.jgit.events.IndexChangedEvent
Describes a change to one or more paths in the index file.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispatch
(IndexChangedListener listener) Dispatch this event to the given listener.Get type of listener this event dispatches toboolean
Methods inherited from class org.eclipse.jgit.events.RepositoryEvent
getRepository, setRepository, toString
-
Field Details
-
internal
private boolean internal
-
-
Constructor Details
-
IndexChangedEvent
public IndexChangedEvent(boolean internal) Notify that the index changed- Parameters:
internal
-true
if the index was changed by the same JGit process- Since:
- 5.0
-
-
Method Details
-
isInternal
public boolean isInternal()- Returns:
true
if the index was changed by the same JGit process- Since:
- 5.0
-
getListenerType
Get type of listener this event dispatches to- Specified by:
getListenerType
in classRepositoryEvent<IndexChangedListener>
- Returns:
- type of listener this event dispatches to
-
dispatch
Dispatch this event to the given listener.- Specified by:
dispatch
in classRepositoryEvent<IndexChangedListener>
- Parameters:
listener
- listener that wants this event.
-