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
Fields
public static final Function<RefChangeString> TO_REF_ID This field is deprecated. in 4.0 for removal in 5.0. With Java 8, RefChange::getRefId can be used instead.
public static final Function<RefChangeRefChangeType> TO_TYPE This field is deprecated. in 4.0 for removal in 5.0. With Java 8, RefChange::getType can be used instead.
Public Methods
@Nonnull String getFromHash()
@Nonnull MinimalRef getRef()
@Deprecated @Nonnull String getRefId()
This method is deprecated. in 4.0 for removal in 5.0. Use getRef() instead
@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)

Fields

public static final Function<RefChangeString> TO_REF_ID

This field is deprecated.
in 4.0 for removal in 5.0. With Java 8, RefChange::getRefId can be used instead.

public static final Function<RefChangeRefChangeType> TO_TYPE

This field is deprecated.
in 4.0 for removal in 5.0. With Java 8, RefChange::getType can be used instead.

Public Methods

@Nonnull public String getFromHash ()

Returns
  • the previous hash

@Nonnull public MinimalRef getRef ()

Returns
  • the ref that has been updated

@Deprecated @Nonnull public String getRefId ()

This method is deprecated.
in 4.0 for removal in 5.0. Use getRef() instead

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