.#trackinformation.java.1.3

来自「国外的j2me播放器软件」· 3 代码 · 共 66 行

3
66
字号
package no.auc.one.portableplayer.librarymanager;

public class TrackInformation extends MediaInformation {
	
	private String artist = "";
	private String album = "";
	private String genre = "";
	private String duration = "";
	
    public TrackInformation() {
        super();

	    artist = "";
	    album = "";
	    genre = "";
	    duration = "";
    }
    
	public TrackInformation(
        String trackID, 
        String name, 
        String parentID, 
        String resourceUrl, 
        long resourceSize, 
        String artist, 
        String album, 
        String genre, 
        String duration) 
    {
		super(trackID, name, parentID, resourceUrl, resourceSize);
		this.artist = artist;
		this.album = album;
		this.genre = genre;
		this.duration = duration;
	}

	public String getArtist() {
		return artist;
	}
	public String getAlbum() {
		return album;
	}
	public String getGenre() {
		return genre;
	}
	public String getDuration() {
		return duration;
	}

	public void setArtist(String artist){
		this.artist = artist;
	}
	
	public void setAlbum(String album){
		this.album = album;
	}
	
	public void setGenre(String genre){
		this.genre = genre;
	}
	
	public void setDuration(String duration){
		this.duration = duration;
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?