Class ModifiedFile
java.lang.Object
com.google.gerrit.server.patch.gitdiff.ModifiedFile
An entity representing a Modified file due to a diff between 2 git trees. This entity contains
 the change type and the old invalid input: '&' new paths, but does not include any actual content diff of the
 file.
- 
Nested Class SummaryNested Classes
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic ModifiedFile.Builderbuilder()abstract Patch.ChangeTypeReturns the change type (i.e.newPath()Returns the new name associated with this file.oldPath()Returns the old name associated with this file.abstract ModifiedFile.Builderintweight()Computes this object's weight, which is its size in bytes.
- 
Constructor Details- 
ModifiedFilepublic ModifiedFile()
 
- 
- 
Method Details- 
changeTypeReturns the change type (i.e. add, delete, modify, rename, etc...) associated with this modified file.
- 
oldPathReturns the old name associated with this file. An empty optional is returned ifchangeType()is equal toPatch.ChangeType.ADDED.
- 
newPathReturns the new name associated with this file. An empty optional is returned ifchangeType()is equal toPatch.ChangeType.DELETED
- 
getDefaultPath
- 
builder
- 
toBuilder
- 
weightpublic int weight()Computes this object's weight, which is its size in bytes.
 
-