Package com.google.gerrit.server.patch
Class PatchListKey
- java.lang.Object
-
- com.google.gerrit.server.patch.PatchListKey
-
- All Implemented Interfaces:
Serializable
public class PatchListKey extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static long
serialVersionUID
static com.google.common.collect.ImmutableBiMap<DiffPreferencesInfo.Whitespace,Character>
WHITESPACE_TYPES
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PatchListKey
againstCommit(org.eclipse.jgit.lib.AnyObjectId otherCommitId, org.eclipse.jgit.lib.AnyObjectId newId, DiffPreferencesInfo.Whitespace whitespace)
static PatchListKey
againstDefaultBase(org.eclipse.jgit.lib.AnyObjectId newId, DiffPreferencesInfo.Whitespace ws)
static PatchListKey
againstParentNum(int parentNum, org.eclipse.jgit.lib.AnyObjectId newId, DiffPreferencesInfo.Whitespace ws)
boolean
equals(Object o)
org.eclipse.jgit.lib.ObjectId
getNewId()
New side commit name.org.eclipse.jgit.lib.ObjectId
getOldId()
Old side commit, or null to assume ancestor or combined merge.Integer
getParentNum()
Parent number (old side) of the new side (merge) commitDiffPreferencesInfo.Whitespace
getWhitespace()
int
hashCode()
String
toString()
-
-
-
Field Detail
-
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
-
WHITESPACE_TYPES
public static final com.google.common.collect.ImmutableBiMap<DiffPreferencesInfo.Whitespace,Character> WHITESPACE_TYPES
-
-
Method Detail
-
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)
-
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()
-
-