net.sourceforge.atunes.kernel.modules.repository
Class Repository

java.lang.Object
  extended by net.sourceforge.atunes.kernel.modules.repository.Repository
All Implemented Interfaces:
java.io.Serializable

public class Repository
extends java.lang.Object
implements java.io.Serializable

The Class Repository.

Author:
fleax
See Also:
Serialized Form

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

Repository

public Repository(java.util.List<java.io.File> folders)
Instantiates a new repository.

Parameters:
folders - the folders
Method Detail

addDurationInSeconds

public void addDurationInSeconds(long seconds)
Adds the duration in seconds.

Parameters:
seconds - the seconds

countFiles

public int countFiles()
Count files.

Returns:
the int

getFile

public AudioFile getFile(java.lang.String fileName)
Gets the file.

Parameters:
fileName - the file name
Returns:
the file

getFiles

public java.util.Map<java.lang.String,AudioFile> getFiles()
Gets the files.

Returns:
the files

getFilesList

public java.util.List<AudioFile> getFilesList()
Gets the files list.

Returns:
the files list

getFolders

public java.util.List<java.io.File> getFolders()
Gets the folders.

Returns:
the folders

getStats

public RepositoryStats getStats()
Gets the stats.

Returns:
the stats

getStructure

public RepositoryStructure getStructure()
Gets the structure.

Returns:
the structure

getTotalDurationInSeconds

public long getTotalDurationInSeconds()
Gets the total duration in seconds.

Returns:
the total duration in seconds

getTotalSizeInBytes

public long getTotalSizeInBytes()
Gets the total size in bytes.

Returns:
the total size in bytes

removeDurationInSeconds

public void removeDurationInSeconds(long seconds)
Removes the duration in seconds.

Parameters:
seconds - the seconds

setTotalSizeInBytes

public void setTotalSizeInBytes(long totalSizeInBytes)
Sets the total size in bytes.

Parameters:
totalSizeInBytes - the new total size in bytes


Copyright © 2006-2008 The aTunes Team. All Rights Reserved.