public class FileLocations extends Object
| Constructor and Description |
|---|
FileLocations() |
| Modifier and Type | Method and Description |
|---|---|
void |
addLine(String fileName,
int lineStart)
Adds the specified affected file and line number.
|
boolean |
contains(String fileName)
Returns whether the specified file has been added.
|
Set<String> |
getFiles()
Returns the absolute file names of all files.
|
Set<Integer> |
getLines(String fileName)
Returns the added lines for the specified file.
|
boolean |
isEmpty()
Returns whether some files have been added.
|
int |
size()
Returns the number of files that have been added.
|
public void addLine(String fileName, int lineStart)
fileName - the absolute file name that will be used as a keylineStart - the line number to find the blame forpublic boolean isEmpty()
true if there a no blames available, false otherwisepublic int size()
public boolean contains(String fileName)
fileName - the relative or absolute path of the filetrue if the file already has been added, false otherwisepublic Set<String> getFiles()
public Set<Integer> getLines(String fileName)
fileName - the relative or absolute path of the fileNoSuchElementException - if the file name is not registeredCopyright © 2016–2019. All rights reserved.