Package org.eclipse.jgit.blame
Class Region
java.lang.Object
org.eclipse.jgit.blame.Region
Region of the result that still needs to be computed.
Regions are held in a singly-linked-list by Candidate using the
Candidate.regionList field. The list is kept in sorted order by
resultStart.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) intLength of the region, always >= 1.(package private) RegionNext entry in the region linked list.(package private) intFirst position of this region in the result file blame is computing.(package private) intFirst position in theCandidatethat owns this Region. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) Regioncopy(int newSource) Copy the entire result region, but at a new source position.(package private) RegiondeepCopy()(package private) voidslideAndShrink(int d) Edit this region to remove the firstdelements.(package private) RegionsplitFirst(int newSource, int newLen) Split the region, assigning a new source position to the first half.toString()
-
Field Details
-
Constructor Details
-
Region
Region(int rs, int ss, int len)
-
-
Method Details
-
copy
Copy the entire result region, but at a new source position.- Parameters:
newSource- the new source position.- Returns:
- the same result region, but offset for a new source.
-
splitFirst
Split the region, assigning a new source position to the first half.- Parameters:
newSource- the new source position.newLen- length of the new region.- Returns:
- the first half of the region, at the new source.
-
slideAndShrink
void slideAndShrink(int d) Edit this region to remove the firstdelements.- Parameters:
d- number of elements to remove from the start of this region.
-
deepCopy
Region deepCopy() -
toString
-