Class PatchListKey

java.lang.Object
com.google.gerrit.server.patch.PatchListKey
All Implemented Interfaces:
Serializable

public class PatchListKey extends Object implements Serializable
See Also:
  • Field Details

  • Method Details

    • againstDefaultBase

      public static PatchListKey againstDefaultBase(org.eclipse.jgit.lib.AnyObjectId newId, DiffPreferencesInfo.Whitespace ws)
    • againstParentNum

      public static PatchListKey againstParentNum(int parentNum, org.eclipse.jgit.lib.AnyObjectId newId, DiffPreferencesInfo.Whitespace ws)
    • againstCommit

      public static PatchListKey againstCommit(org.eclipse.jgit.lib.AnyObjectId otherCommitId, org.eclipse.jgit.lib.AnyObjectId newId, DiffPreferencesInfo.Whitespace whitespace)
    • againstBase

      public static PatchListKey againstBase(org.eclipse.jgit.lib.ObjectId id, int parentCount)
    • getOldId

      public org.eclipse.jgit.lib.ObjectId getOldId()
      Old side commit, or null to assume ancestor or combined merge.
    • getParentNum

      public Integer getParentNum()
      Parent number (old side) of the new side (merge) commit
    • getNewId

      public org.eclipse.jgit.lib.ObjectId getNewId()
      New side commit name.
    • getWhitespace

      public DiffPreferencesInfo.Whitespace getWhitespace()
    • hashCode

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

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

      public String toString()
      Overrides:
      toString in class Object