Top Description Fields Constructors Methods
org.eclipse.jgit.blame

pack-priv Class Region

extends Object
Class Inheritance

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

Modifier and TypeField and Description
pack-priv int
length

Length of the region, always >= 1.

pack-priv Region
next

Next entry in the region linked list.

pack-priv int
resultStart

First position of this region in the result file blame is computing.

pack-priv int
sourceStart

First position in the Candidate that owns this Region.

Constructor Summary

AccessConstructor and Description
pack-priv
Region(int rs, int ss, int len)

Method Summary

Modifier and TypeMethod and Description
pack-priv Region

Returns:

the same result region, but offset for a new source.
copy
(int
the new source position.
newSource
)

Copy the entire result region, but at a new source position.

pack-priv Region
pack-priv void
slideAndShrink(int
number of elements to remove from the start of this region.
d
)

Edit this region to remove the first d elements.

pack-priv Region

Returns:

the first half of the region, at the new source.
splitFirst
(int
the new source position.
newSource
,
int
length of the new region.
newLen
)

Split the region, assigning a new source position to the first half.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

lengthback to summary
pack-priv int length

Length of the region, always >= 1.

nextback to summary
pack-priv Region next

Next entry in the region linked list.

resultStartback to summary
pack-priv int resultStart

First position of this region in the result file blame is computing.

sourceStartback to summary
pack-priv int sourceStart

First position in the Candidate that owns this Region.

Constructor Detail

Regionback to summary
pack-priv Region(int rs, int ss, int len)

Method Detail

copyback to summary
pack-priv Region copy(int newSource)

Copy the entire result region, but at a new source position.

Parameters
newSource:int

the new source position.

Returns:Region

the same result region, but offset for a new source.

deepCopyback to summary
pack-priv Region deepCopy()
slideAndShrinkback to summary
pack-priv void slideAndShrink(int d)

Edit this region to remove the first d elements.

Parameters
d:int

number of elements to remove from the start of this region.

splitFirstback to summary
pack-priv Region splitFirst(int newSource, int newLen)

Split the region, assigning a new source position to the first half.

Parameters
newSource:int

the new source position.

newLen:int

length of the new region.

Returns:Region

the first half of the region, at the new source.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override