Package org.eclipse.jgit.events
Class IndexChangedEvent
- 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 void
dispatch(IndexChangedListener listener)
Dispatch this event to the given listener.Class<IndexChangedListener>
getListenerType()
Get type of listener this event dispatches toboolean
isInternal()
-
Methods inherited from class org.eclipse.jgit.events.RepositoryEvent
getRepository, setRepository, toString
-
-
-
-
Method Detail
-
isInternal
public boolean isInternal()
- Returns:
true
if 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:
getListenerType
in 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:
dispatch
in classRepositoryEvent<IndexChangedListener>
- Parameters:
listener
- listener that wants this event.
-
-