Constructor and Description |
---|
Library(String fileName)
Initializes this library from the file with the given name.
|
Modifier and Type | Method and Description |
---|---|
Playlist |
get(int index)
Returns the playlist of this library with the given index.
|
String |
getApplicationVersion()
Returns the application version of this library.
|
Date |
getDate() |
int |
getFeatures()
Returns the number of features of this library.
|
String |
getLibraryPersistentID()
Return the persistent ID of this library.
|
int |
getMajorVersion()
Returns the major version of this library.
|
int |
getMinorVersion()
Returns the minor version of this library.
|
String |
getMusicFolder()
Returns the music folder of this library.
|
Track |
getTrack(int ID)
Returns the track of this library with the given ID.
|
boolean |
isShowContentRatings()
Returns whether the content rating of this library is shown.
|
Iterator<Track> |
iterator()
Returns the tracks of this library.
|
int |
numberOfPlayLists()
Returns the number of playlists of this library.
|
public int getMajorVersion()
public int getMinorVersion()
public int getFeatures()
public boolean isShowContentRatings()
public String getApplicationVersion()
public String getMusicFolder()
public String getLibraryPersistentID()
public Date getDate()
public Playlist get(int index)
index
- the index of the playlist.public int numberOfPlayLists()
public Track getTrack(int ID)
NoSuchElementException
- if this library does not have a track with the given ID.ID
- the ID of the track.