Class SimpleMinimalCommit

java.lang.Object
com.atlassian.bitbucket.commit.SimpleMinimalCommit
All Implemented Interfaces:
MinimalCommit, Serializable
Direct Known Subclasses:
SimpleCommit, SimpleMinimalRepositoryCommit

public class SimpleMinimalCommit extends Object implements MinimalCommit, Serializable
See Also:
  • Field Details

    • DEFAULT_DISPLAY_ID_LENGTH

      public static final int DEFAULT_DISPLAY_ID_LENGTH
      See Also:
  • Constructor Details

  • Method Details

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • getDisplayId

      @Nonnull public String getDisplayId()
      Description copied from interface: MinimalCommit
      An identifier for this commit suitable for display to end users.

      No guarantees are made as to how this identifier differs from MinimalCommit.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.

      Specified by:
      getDisplayId in interface MinimalCommit
      Returns:
      a display ID
    • getId

      @Nonnull public String getId()
      Description copied from interface: MinimalCommit
      An identifier for this commit which may be passed to the system in order to retrieve more information related to it.
      Specified by:
      getId in interface MinimalCommit
      Returns:
      a commit ID
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object