base
Class TrackInfo

java.lang.Object
  extended by base.TrackInfo

public class TrackInfo
extends Object

This is a storage class for a single track within a CD album.


Field Summary
 int cdidx
           
 int cnt
           
 int currentTrackTime
           
 String name
           
 int trackNum
           
 int trackTime
           
 
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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public String name

trackTime

public int trackTime

currentTrackTime

public int currentTrackTime

trackNum

public int trackNum

cnt

public int cnt

cdidx

public int cdidx
Constructor Detail

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 track
cnt - the usage counter for this track, it holds the information how often this track was played; this value is stored within the database
cdidx - a unique identifier for this track as it is used by the database
Method Detail

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