Usually all parameters are non-null, except when the Region was created to fill an unblamed gap (to cover for bugs in the calculation). In that case, path, commit and author will be null.
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final ObjectId | |
| private final String | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public | CacheRegion(String
location of the file path, ObjectId commit that is modifying this region commit, int first line of this region (inclusive) start, int last line of this region (non-inclusive!) end)A blamed portion of a file |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| public int | compareTo(CacheRegion
the object to be compared. o)Implements java. Compares this object with the specified object for order. |
| public int | Returns: one after last line in this region.One after last line in this region (or: last line non-inclusive) |
| public ObjectId | |
| public String | |
| public int | |
| public String |
| end | back to summary |
|---|---|
| private final int end | |
| sourceCommit | back to summary |
|---|---|
| private final ObjectId sourceCommit | |
| sourcePath | back to summary |
|---|---|
| private final String sourcePath | |
| start | back to summary |
|---|---|
| private final int start | |
| CacheRegion | back to summary |
|---|---|
| public CacheRegion(String path, ObjectId commit, int start, int end) A blamed portion of a file | |
| allOrNoneNull | back to summary |
|---|---|
| private static void allOrNoneNull(String path, ObjectId commit) | |
| compareTo | back to summary |
|---|---|
| public int compareTo(CacheRegion o) Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| getEnd | back to summary |
|---|---|
| public int getEnd() One after last line in this region (or: last line non-inclusive)
| |
| getSourceCommit | back to summary |
|---|---|
| public ObjectId getSourceCommit() Commit this region belongs to
| |
| getSourcePath | back to summary |
|---|---|
| public String getSourcePath() Path of the file this region belongs to
| |
| getStart | back to summary |
|---|---|
| public int getStart() First line of this region. Starting by 0, inclusive
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |