forked from reposense/RepoSense
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFileResult.java
More file actions
42 lines (34 loc) · 1.02 KB
/
FileResult.java
File metadata and controls
42 lines (34 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package reposense.authorship.model;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import reposense.model.Author;
import reposense.model.FileType;
/**
* Stores the result from analyzing a {@code FileInfo}.
*/
public class FileResult {
private final String path;
private FileType fileType;
private final ArrayList<LineInfo> lines;
private final HashMap<Author, Integer> authorContributionMap;
public FileResult(String path, FileType fileType, ArrayList<LineInfo> lines,
HashMap<Author, Integer> authorContributionMap) {
this.path = path;
this.fileType = fileType;
this.lines = lines;
this.authorContributionMap = authorContributionMap;
}
public List<LineInfo> getLines() {
return lines;
}
public String getPath() {
return path;
}
public FileType getFileType() {
return fileType;
}
public HashMap<Author, Integer> getAuthorContributionMap() {
return authorContributionMap;
}
}