public interface

RefChange

com.atlassian.stash.repository.RefChange
Known Indirect Subclasses

Class Overview

Represents a ref change, used mainly by RepositoryRefsChangedEvent.

Summary

Fields
public static final Function<RefChange, String> TO_REF_ID
public static final Function<RefChangeRefChangeType> TO_TYPE
Public Methods
@Nonnull String getFromHash()
@Nonnull String getRefId()
@Nonnull String getToHash()
@Nonnull RefChangeType getType()

Fields

public static final Function<RefChange, String> TO_REF_ID

public static final Function<RefChangeRefChangeType> TO_TYPE

Public Methods

@Nonnull public String getFromHash ()

Returns
  • the previous hash

@Nonnull public String getRefId ()

Returns
  • the ref that has been updated

@Nonnull public String getToHash ()

Returns
  • the new hash

@Nonnull public RefChangeType getType ()

Returns
  • the type of ref change