Package com.google.gerrit.server.patch
Class GitPositionTransformer.Range
java.lang.Object
com.google.gerrit.server.patch.GitPositionTransformer.Range
- Enclosing class:
- GitPositionTransformer
A range. In the context of 
GitPositionTransformer, this is a line range.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic GitPositionTransformer.Rangecreate(int start, int end) abstract intend()End of the range.shiftBy(int amount) Creates a copy of thisRangewhich is shifted by the indicated amount.abstract intstart()Start of the range.
- 
Constructor Details- 
Rangepublic Range()
 
- 
- 
Method Details- 
startpublic abstract int start()Start of the range. (inclusive)
- 
endpublic abstract int end()End of the range. (exclusive)
- 
shiftByCreates 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
 
- 
create
 
-