base
Class TrackInfo
java.lang.Object
base.TrackInfo
public class TrackInfo
- extends Object
This is a storage class for a single track within a CD album.
|
Constructor Summary |
TrackInfo(int trackNum)
Constructor for a new object of type TrackInfo |
TrackInfo(String track,
int cnt,
int cdidx)
Constructor for a new object of type TrackInfo |
|
Method Summary |
void |
set(TrackInfo copy)
This method can be used to securely set new track information. |
name
public String name
trackTime
public int trackTime
currentTrackTime
public int currentTrackTime
trackNum
public int trackNum
cnt
public int cnt
cdidx
public int cdidx
TrackInfo
public TrackInfo(int trackNum)
- Constructor for a new object of type TrackInfo
- Parameters:
trackNum - the number of this track; this has to be a value greater than 0
TrackInfo
public TrackInfo(String track,
int cnt,
int cdidx)
- Constructor for a new object of type TrackInfo
- Parameters:
track - the name of the track; this value normally is the title of the song at this trackcnt - the usage counter for this track, it holds the information how often this track was
played; this value is stored within the databasecdidx - a unique identifier for this track as it is used by the database
set
public void set(TrackInfo copy)
- This method can be used to securely set new track information. When a member of the
new track data is not used/initialized the own member is left unchanged. Only when a
member contains new data, the own member is overwritten.
- Parameters:
copy - the new TrackInfo object that contains the datas to be copied to the own
ones