|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.atunes.kernel.modules.repository.Repository
public class Repository
The Class Repository.
Constructor Summary | |
---|---|
Repository(java.util.List<java.io.File> folders)
Instantiates a new repository. |
Method Summary | |
---|---|
void |
addDurationInSeconds(long seconds)
Adds the duration in seconds. |
int |
countFiles()
Count files. |
AudioFile |
getFile(java.lang.String fileName)
Gets the file. |
java.util.Map<java.lang.String,AudioFile> |
getFiles()
Gets the files. |
java.util.List<AudioFile> |
getFilesList()
Gets the files list. |
java.util.List<java.io.File> |
getFolders()
Gets the folders. |
RepositoryStats |
getStats()
Gets the stats. |
RepositoryStructure |
getStructure()
Gets the structure. |
long |
getTotalDurationInSeconds()
Gets the total duration in seconds. |
long |
getTotalSizeInBytes()
Gets the total size in bytes. |
void |
removeDurationInSeconds(long seconds)
Removes the duration in seconds. |
void |
setTotalSizeInBytes(long totalSizeInBytes)
Sets the total size in bytes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Repository(java.util.List<java.io.File> folders)
folders
- the foldersMethod Detail |
---|
public void addDurationInSeconds(long seconds)
seconds
- the secondspublic int countFiles()
public AudioFile getFile(java.lang.String fileName)
fileName
- the file name
public java.util.Map<java.lang.String,AudioFile> getFiles()
public java.util.List<AudioFile> getFilesList()
public java.util.List<java.io.File> getFolders()
public RepositoryStats getStats()
public RepositoryStructure getStructure()
public long getTotalDurationInSeconds()
public long getTotalSizeInBytes()
public void removeDurationInSeconds(long seconds)
seconds
- the secondspublic void setTotalSizeInBytes(long totalSizeInBytes)
totalSizeInBytes
- the new total size in bytes
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |