public class RepositoryStatistics extends Object implements Serializable
| Constructor and Description |
|---|
RepositoryStatistics() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(FileStatistics additionalStatistics)
Adds the additional file statistics instance.
|
void |
addAll(Collection<FileStatistics> additionalStatistics)
Adds all additional file statistics.
|
void |
addAll(RepositoryStatistics additionalStatistics)
Adds all additional file statistics.
|
boolean |
contains(String fileName)
Returns whether the specified file is part of the repository.
|
FileStatistics |
get(String fileName)
Returns the statistics for the specified file.
|
Set<String> |
getFiles()
Returns the absolute file names of the files that are part of the repository.
|
Collection<FileStatistics> |
getFileStatistics()
Returns the statistics for all repository files.
|
boolean |
isEmpty()
Returns whether the repository is empty.
|
int |
size()
Returns the number of files in the repository.
|
public boolean isEmpty()
true if the repository is empty, false otherwisepublic int size()
public boolean contains(String fileName)
fileName - the name of the filetrue if the file file is part of the repository, false otherwisepublic Set<String> getFiles()
public Collection<FileStatistics> getFileStatistics()
public FileStatistics get(String fileName)
fileName - absolute file nameNoSuchElementException - if the file name is not registeredpublic void addAll(Collection<FileStatistics> additionalStatistics)
additionalStatistics - the additional statistics to addpublic void addAll(RepositoryStatistics additionalStatistics)
additionalStatistics - the additional statistics to addpublic void add(FileStatistics additionalStatistics)
additionalStatistics - the additional statistics to addCopyright © 2016–2019. All rights reserved.