FileDocCategorySizeDatePackage
MusicTrack.javaAPI DocAndroid 5.1 API3253Thu Mar 12 22:22:44 GMT 2015com.example.android.musicservicedemo.browser

MusicTrack

public class MusicTrack extends Object
A class to model music track metadata.

Fields Summary
private static final String
TAG
private String
mTitle
private String
mAlbum
private String
mArtist
private String
mGenre
private String
mSource
private String
mImage
private int
mTrackNumber
private int
mTotalTrackCount
private int
mDuration
Constructors Summary
public MusicTrack(String title, String album, String artist, String genre, String source, String image, int trackNumber, int totalTrackCount, int duration)
Constructor creating a MusicTrack instance.

param
title
param
album
param
artist
param
genre
param
source
param
image
param
trackNumber
param
totalTrackCount
param
duration


                                
              
                    
        this.mTitle = title;
        this.mAlbum = album;
        this.mArtist = artist;
        this.mGenre = genre;
        this.mSource = source;
        this.mImage = image;
        this.mTrackNumber = trackNumber;
        this.mTotalTrackCount = totalTrackCount;
        this.mDuration = duration;
    
Methods Summary
public java.lang.StringgetAlbum()

        return mAlbum;
    
public java.lang.StringgetArtist()

        return mArtist;
    
public intgetDuration()

        return mDuration;
    
public java.lang.StringgetGenre()

        return mGenre;
    
public java.lang.StringgetImage()

        return mImage;
    
public java.lang.StringgetSource()

        return mSource;
    
public java.lang.StringgetTitle()

        return mTitle;
    
public intgetTotalTrackCount()

        return mTotalTrackCount;
    
public intgetTrackNumber()

        return mTrackNumber;
    
public voidsetAlbum(java.lang.String mAlbum)

        this.mAlbum = mAlbum;
    
public voidsetArtist(java.lang.String mArtist)

        this.mArtist = mArtist;
    
public voidsetDuration(int mDuration)

        this.mDuration = mDuration;
    
public voidsetGenre(java.lang.String mGenre)

        this.mGenre = mGenre;
    
public voidsetImage(java.lang.String mImage)

        this.mImage = mImage;
    
public voidsetSource(java.lang.String mSource)

        this.mSource = mSource;
    
public voidsetTitle(java.lang.String mTitle)

        this.mTitle = mTitle;
    
public voidsetTotalTrackCount(int mTotalTrackCount)

        this.mTotalTrackCount = mTotalTrackCount;
    
public voidsetTrackNumber(int mTrackNumber)

        this.mTrackNumber = mTrackNumber;
    
public java.lang.StringtoString()

        return mTitle;