public interface

Ref

implements MinimalRef
com.atlassian.bitbucket.repository.Ref
Known Indirect Subclasses

Class Overview

Common abstraction between reference types like branches and tags.

Summary

Fields
public static final Function<RefString> TO_LATEST_COMMIT This field is deprecated. in 4.0 for removal in 5.0. With Java 8, Ref::getLatestCommit can be used instead.
[Expand]
Inherited Fields
From interface com.atlassian.bitbucket.repository.MinimalRef
Public Methods
@Nonnull String getLatestCommit()
The ID of the commit at the tip of this ref.
[Expand]
Inherited Methods
From interface com.atlassian.bitbucket.repository.MinimalRef

Fields

public static final Function<RefString> TO_LATEST_COMMIT

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

Retrieve the latest commit to this ref.

Public Methods

@Nonnull public String getLatestCommit ()

The ID of the commit at the tip of this ref.

Returns
  • the tip commit's ID