Package com.google.gerrit.server.patch
Class GitPositionTransformer.Range
- java.lang.Object
- 
- com.google.gerrit.server.patch.GitPositionTransformer.Range
 
- 
- Enclosing class:
- GitPositionTransformer
 
 public abstract static class GitPositionTransformer.Range extends Object A range. In the context ofGitPositionTransformer, this is a line range.
- 
- 
Constructor SummaryConstructors Constructor Description Range()
 - 
Method SummaryAll Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static GitPositionTransformer.Rangecreate(int start, int end)abstract intend()End of the range.GitPositionTransformer.RangeshiftBy(int amount)Creates a copy of thisRangewhich is shifted by the indicated amount.abstract intstart()Start of the range.
 
- 
- 
- 
Method Detail- 
startpublic abstract int start() Start of the range. (inclusive)
 - 
endpublic abstract int end() End of the range. (exclusive)
 - 
shiftBypublic GitPositionTransformer.Range shiftBy(int amount) Creates a copy of thisRangewhich is shifted by the indicated amount. A shift equally applies to bothstart()endend().Note: There's no guarantee that this method returns a new instance. - Parameters:
- amount- amount to shift. Negative values mean moving the range up, positive values mean moving the range down.
- Returns:
- a Rangeinstance with updated start/end
 
 - 
createpublic static GitPositionTransformer.Range create(int start, int end) 
 
- 
 
-