- java.lang.Object
-
- org.eclipse.jgit.events.RepositoryEvent<IndexChangedListener>
-
- org.eclipse.jgit.events.IndexChangedEvent
-
public class IndexChangedEvent extends RepositoryEvent<IndexChangedListener>
Describes a change to one or more paths in the index file.
-
-
Constructor Summary
Constructors Constructor Description IndexChangedEvent(boolean internal)Notify that the index changed
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispatch(IndexChangedListener listener)Dispatch this event to the given listener.Class<IndexChangedListener>getListenerType()Get type of listener this event dispatches tobooleanisInternal()-
Methods inherited from class org.eclipse.jgit.events.RepositoryEvent
getRepository, setRepository, toString
-
-
-
-
Method Detail
-
isInternal
public boolean isInternal()
- Returns:
trueif the index was changed by the same JGit process- Since:
- 5.0
-
getListenerType
public Class<IndexChangedListener> getListenerType()
Get type of listener this event dispatches to- Specified by:
getListenerTypein classRepositoryEvent<IndexChangedListener>- Returns:
- type of listener this event dispatches to
-
dispatch
public void dispatch(IndexChangedListener listener)
Dispatch this event to the given listener.- Specified by:
dispatchin classRepositoryEvent<IndexChangedListener>- Parameters:
listener- listener that wants this event.
-
-