sk.baka.ambient.playlist
Class PlaylistItem

java.lang.Object
  extended by sk.baka.ambient.playlist.PlaylistItem
All Implemented Interfaces:
Serializable

public final class PlaylistItem
extends Object
implements Serializable

Describes a playlist item at particular index. All properties except the track are mutable. An instance of playlist item is equal only to itself.

Author:
Martin Vysny
See Also:
Serialized Form

Field Summary
(package private)  int playCount
          how many times this track was played.
(package private)  int queueOrder
          the order in which the track is queued, or 0 if the track is not queued.
(package private)  TrackMetadataBean track
          The track meta.
 
Constructor Summary
PlaylistItem(TrackMetadataBean track, int queueOrder, int playCount)
          Creates new playlist item.
 
Method Summary
 int getPlayCount()
          how many times this track was played.
 int getQueueOrder()
          the order in which the track is queued, or 0 if the track is not queued.
 TrackMetadataBean getTrack()
          The track meta.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

track

TrackMetadataBean track
The track meta.


playCount

int playCount
how many times this track was played.


queueOrder

int queueOrder
the order in which the track is queued, or 0 if the track is not queued.

Constructor Detail

PlaylistItem

PlaylistItem(TrackMetadataBean track,
             int queueOrder,
             int playCount)
Creates new playlist item.

Parameters:
track - the track meta
queueOrder - the order in which the track is queued, or 0 if the track is not queued.
playCount - how many times this track was played.
Method Detail

getPlayCount

public int getPlayCount()
how many times this track was played.

Returns:
the playCount

getQueueOrder

public int getQueueOrder()
the order in which the track is queued, or 0 if the track is not queued.

Returns:
the queueOrder

getTrack

public TrackMetadataBean getTrack()
The track meta.

Returns:
the track

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2007-2008. All Rights Reserved.