📄 song.java
字号:
/*******************************************************************************
* Copyright (c) 2007 Siemens AG
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Kai T鰀ter - initial API and implementation
*******************************************************************************/
package com.siemens.ct.mp3m.model.logical;
/**
* This class represents a Song
*/
public class Song {
private Album album;
private String name;
private String track;
private String duration;
private String file;
public Song(Album album, String name, String file) {
this.album = album;
this.name = name;
this.file = file;
}
/**
* Gets the album.
*
* @return Returns the album.
*/
public Album getAlbum() {
return album;
}
/**
* Sets the album.
*
* @param album
* The album to set.
*/
public void setAlbum(Album album) {
this.album = album;
}
/**
* Gets the title.
*
* @return Returns the title.
*/
public String getName() {
return name;
}
/**
* Sets the title.
*
* @param title
* The title to set.
*/
public void setName(String title) {
this.name = title;
}
/**
* Gets the track.
*
* @return Returns the track.
*/
public String getTrack() {
return track;
}
/**
* Sets the track.
*
* @param track The track to set.
*/
public void setTrack(String track) {
this.track = track;
}
/**
* Gets the file.
*
* @return Returns the file.
*/
public String getFile() {
return file;
}
/**
* Sets the file.
*
* @param file The file to set.
*/
public void setFile(String file) {
this.file = file;
}
/**
* Gets the duration.
*
* @return Returns the duration.
*/
public String getDuration() {
return duration;
}
/**
* Sets the duration.
*
* @param duration The duration to set.
*/
public void setDuration(String duration) {
this.duration = duration;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -