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 TypeMethodDescriptionvoiddispatch(IndexChangedListener listener) Dispatch this event to the given listener.Get type of listener this event dispatches tobooleanMethods 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-trueif the index was changed by the same JGit process- Since:
- 5.0
-
-
Method Details
-
isInternal
public boolean isInternal()- Returns:
trueif the index was changed by the same JGit process- Since:
- 5.0
-
getListenerType
Get type of listener this event dispatches to- Specified by:
getListenerTypein classRepositoryEvent<IndexChangedListener>- Returns:
- type of listener this event dispatches to
-
dispatch
Dispatch this event to the given listener.- Specified by:
dispatchin classRepositoryEvent<IndexChangedListener>- Parameters:
listener- listener that wants this event.
-