Top Description Fields Constructors Methods
org.eclipse.jgit.events

public Class IndexChangedEvent

extends RepositoryEvent<IndexChangedListener>
Class Inheritance

Describes a change to one or more paths in the index file.

Field Summary

Modifier and TypeField and Description
private boolean

Constructor Summary

AccessConstructor and Description
public
IndexChangedEvent(boolean
true if the index was changed by the same JGit process
internal
)

Notify that the index changed

Method Summary

Modifier and TypeMethod and Description
public void
dispatch(IndexChangedListener
listener that wants this event.
listener
)

Implements abstract org.eclipse.jgit.events.RepositoryEvent.dispatch.

Dispatch this event to the given listener.

public Class<IndexChangedListener>
getListenerType()

Implements abstract org.eclipse.jgit.events.RepositoryEvent.getListenerType.

Get type of listener this event dispatches to

public boolean

Returns:

true if the index was changed by the same JGit process
isInternal
()

Whether the index was changed by the same JGit process

Inherited from org.eclipse.jgit.events.RepositoryEvent:
getRepositorysetRepositorytoString

Field Detail

internalback to summary
private boolean internal

Constructor Detail

IndexChangedEventback to summary
public IndexChangedEvent(boolean internal)

Notify that the index changed

Parameters
internal:boolean

true if the index was changed by the same JGit process

Since
5.0

Method Detail

dispatchback to summary
public void dispatch(IndexChangedListener listener)

Implements abstract org.eclipse.jgit.events.RepositoryEvent.dispatch.

Doc from org.eclipse.jgit.events.RepositoryEvent.dispatch.

Dispatch this event to the given listener.

Parameters
listener:IndexChangedListener

listener that wants this event.

Annotations
@Override
getListenerTypeback to summary
public Class<IndexChangedListener> getListenerType()

Implements abstract org.eclipse.jgit.events.RepositoryEvent.getListenerType.

Doc from org.eclipse.jgit.events.RepositoryEvent.getListenerType.

Get type of listener this event dispatches to

Returns:Class<IndexChangedListener>

type of listener this event dispatches to

Annotations
@Override
isInternalback to summary
public boolean isInternal()

Whether the index was changed by the same JGit process

Returns:boolean

true if the index was changed by the same JGit process

Since
5.0