public class FileLocations extends Object implements Serializable
| Constructor and Description |
|---|
FileLocations()
Creates an empty instance of
FileLocations. |
FileLocations(String workspace)
Creates an empty instance of
FileLocations that will work on the specified workspace. |
| Modifier and Type | Method and Description |
|---|---|
void |
addLine(String fileName,
int lineStart)
Adds a blame request for the specified affected file and line number.
|
boolean |
contains(String fileName)
Returns whether the specified file already has been added.
|
Set<Integer> |
get(String fileName)
Returns the blames for the specified file.
|
Set<String> |
getFiles()
Returns the absolute file names of the affected files that will be processed by Git blame.
|
Set<String> |
getSkippedFiles() |
boolean |
isEmpty()
Returns whether there are files with blames in this instance.
|
int |
size()
Returns the number of files that have been added to this instance.
|
public FileLocations()
FileLocations.public FileLocations(String workspace)
FileLocations that will work on the specified workspace.workspace - the workspace to get the Git repository frompublic boolean isEmpty()
true if there a no blames available, false otherwisepublic int size()
public boolean contains(String fileName)
fileName - the name of the filetrue if the file already has been added, false otherwisepublic 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 Set<String> getFiles()
public Set<Integer> get(String fileName)
fileName - absolute file nameNoSuchElementException - if the file name is not registeredCopyright © 2016–2019. All rights reserved.