Class FileEdits
- java.lang.Object
-
- com.google.gerrit.server.patch.filediff.FileEdits
-
public abstract class FileEdits extends Object
An entity class containing the list of edits between two commits for a file, and the old and new paths.
-
-
Constructor Summary
Constructors Constructor Description FileEdits()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static FileEdits
create(com.google.common.collect.ImmutableList<Edit> edits, Optional<String> oldPath, Optional<String> newPath)
static FileEdits
createFromJgitEdits(com.google.common.collect.ImmutableList<org.eclipse.jgit.diff.Edit> jgitEdits, Optional<String> oldPath, Optional<String> newPath)
abstract com.google.common.collect.ImmutableList<Edit>
edits()
static FileEdits
empty()
abstract Optional<String>
newPath()
abstract Optional<String>
oldPath()
-
-
-
Method Detail
-
create
public static FileEdits create(com.google.common.collect.ImmutableList<Edit> edits, Optional<String> oldPath, Optional<String> newPath)
-
createFromJgitEdits
public static FileEdits createFromJgitEdits(com.google.common.collect.ImmutableList<org.eclipse.jgit.diff.Edit> jgitEdits, Optional<String> oldPath, Optional<String> newPath)
-
edits
public abstract com.google.common.collect.ImmutableList<Edit> edits()
-
empty
public static FileEdits empty()
-
-