public interface

RefChange

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

Class Overview

Represents a ref change, used mainly by RepositoryRefsChangedEvent.

Summary

Constants
int MAX_HASH_LENGTH The maximum length of a ref change's to and from hash
Public Methods
@Nonnull String getFromHash()
@Nonnull MinimalRef getRef()
@Nonnull String getToHash()
@Nonnull RefChangeType getType()

Constants

public static final int MAX_HASH_LENGTH

The maximum length of a ref change's to and from hash

Constant Value: 40 (0x00000028)

Public Methods

@Nonnull public String getFromHash ()

Returns
  • the previous hash

@Nonnull public MinimalRef getRef ()

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