public class

SimpleMinimalCommit

extends Object
implements MinimalCommit Serializable
java.lang.Object
   ↳ com.atlassian.bitbucket.commit.SimpleMinimalCommit
Known Direct Subclasses

Summary

Nested Classes
class SimpleMinimalCommit.AbstractMinimalCommitBuilder<B extends AbstractMinimalCommitBuilder<B, R extends MinimalCommit>, R>  
class SimpleMinimalCommit.Builder  
Constants
int DEFAULT_DISPLAY_ID_LENGTH
Protected Constructors
SimpleMinimalCommit(AbstractMinimalCommitBuilder<?, ?> builder)
Public Methods
boolean equals(Object o)
@Nonnull String getDisplayId()
An identifier for this commit suitable for display to end users.
@Nonnull String getId()
An identifier for this commit which may be passed to the system in order to retrieve more information related to it.
int hashCode()
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.bitbucket.commit.MinimalCommit

Constants

public static final int DEFAULT_DISPLAY_ID_LENGTH

Constant Value: 11 (0x0000000b)

Protected Constructors

protected SimpleMinimalCommit (AbstractMinimalCommitBuilder<?, ?> builder)

Public Methods

public boolean equals (Object o)

@Nonnull public String getDisplayId ()

An identifier for this commit suitable for display to end users.

No guarantees are made as to how this identifier differs from getId()--they may be identical or not, at the whim of the underlying SCM implementation. In practice, however, the returned identifier should be sensible for users familiar with the underlying SCM.

Returns
  • a display ID

@Nonnull public String getId ()

An identifier for this commit which may be passed to the system in order to retrieve more information related to it.

Returns
  • a commit ID

public int hashCode ()

public String toString ()