@AsynchronousPreferred public class

AbstractRepositoryRefsChangedEvent

extends RepositoryEvent
implements RepositoryRefsChangedEvent
java.lang.Object
   ↳ java.util.EventObject
     ↳ com.atlassian.stash.event.StashEvent
       ↳ com.atlassian.stash.event.RepositoryEvent
         ↳ com.atlassian.stash.event.AbstractRepositoryRefsChangedEvent
Known Direct Subclasses

Class Overview

Basic implementation of RepositoryRefsChangedEvent that developers can extend.

Summary

[Expand]
Inherited Fields
From class java.util.EventObject
Public Constructors
AbstractRepositoryRefsChangedEvent(Object source, Repository repository, Collection<RefChange> refChanges)
Public Methods
@Nonnull Collection<RefChange> getRefChanges()
Retrieves a collection of the changed refs.
[Expand]
Inherited Methods
From class com.atlassian.stash.event.RepositoryEvent
From class com.atlassian.stash.event.StashEvent
From class java.util.EventObject
From class java.lang.Object
From interface com.atlassian.stash.event.RepositoryRefsChangedEvent

Public Constructors

public AbstractRepositoryRefsChangedEvent (Object source, Repository repository, Collection<RefChange> refChanges)

Public Methods

@Nonnull public Collection<RefChange> getRefChanges ()

Retrieves a collection of the changed refs.

Note: While the returned collection will never be null, it may be empty. For example, a remotely merged pull request will have an empty set of changes.

Returns
  • a collection containing 0 or more changed refs