|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gitective.core.filter.commit.DuplicateContainer
public class DuplicateContainer
Container class for duplicates found in commit walks
| Field Summary | |
|---|---|
protected org.eclipse.jgit.revwalk.RevCommit |
commit
Commit |
protected Map<org.eclipse.jgit.lib.AnyObjectId,List<String>> |
objects
Duplicate objects |
| Constructor Summary | |
|---|---|
protected |
DuplicateContainer(org.eclipse.jgit.revwalk.RevCommit commit)
Create duplicate container |
| Method Summary | |
|---|---|
org.eclipse.jgit.revwalk.RevCommit |
getCommit()
Get commits that these duplicates occurred in |
Map<org.eclipse.jgit.lib.AnyObjectId,List<String>> |
getDuplicates()
Get duplicate blobs ids mapped paths |
int |
getTotal()
Get total number of duplicates |
protected DuplicateContainer |
include(org.eclipse.jgit.lib.AnyObjectId id,
String path)
Include id and path as possible duplicate |
Iterator<Map.Entry<org.eclipse.jgit.lib.AnyObjectId,List<String>>> |
iterator()
Get iterator over all duplicate blobs |
protected boolean |
validate()
Validate that this container contains at least one duplicate blob |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final org.eclipse.jgit.revwalk.RevCommit commit
protected final Map<org.eclipse.jgit.lib.AnyObjectId,List<String>> objects
| Constructor Detail |
|---|
protected DuplicateContainer(org.eclipse.jgit.revwalk.RevCommit commit)
commit - | Method Detail |
|---|
protected DuplicateContainer include(org.eclipse.jgit.lib.AnyObjectId id,
String path)
id - path -
protected boolean validate()
public org.eclipse.jgit.revwalk.RevCommit getCommit()
public Map<org.eclipse.jgit.lib.AnyObjectId,List<String>> getDuplicates()
public Iterator<Map.Entry<org.eclipse.jgit.lib.AnyObjectId,List<String>>> iterator()
iterator in interface Iterable<Map.Entry<org.eclipse.jgit.lib.AnyObjectId,List<String>>>public int getTotal()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||