java track_track.java 源代码在线查看 - android开发入门与实践源代码 资源下载 虫虫电子下载站...

package us.imnet.iceskysl.xspf;import java.util.Properties;public class Track { private String location; private String info; private String annotation; private String image; private String creator; private String album; private String identifier; private String title; private Properties meta; /** * @return Returns the title. */ public String getTitle() { return title; } /** * @param title The title to set. */ public void setTitle(String title) { this.title = title; } /** * @return Returns the album. */ public String getAlbum() { return album; }public String getArtist() {return creator;} /** * @param album The album to set. */ public void setAlbum(String album) { this.album = album; } /** * @return Returns the creator. */ public String getCreator() { return creator; } /** * @param creator The creator to set. */ public void setCreator(String creator) { this.creator = creator; } /** * @return Returns the identifier. */ public String getIdentifier() { return identifier; } /** * @param identifier The identifier to set. */ public void setIdentifier(String identifier) { this.identifier = identifier; } /** * @return Returns the annotation. */ public String getAnnotation() { return annotation; } /** * @param annotation The annotation to set. */ public void setAnnotation(String annotation) { this.annotation = annotation; } /** * @return Returns the image. */ public String getImage() { return image; } /** * @param image The image to set. */ public void setImage(String image) { this.image = image; } /** * @return Returns the location. */ public String getLocation() { return location; } /** * @param location The location to set. */ public void setLocation(String location) { this.location = location; } /** * @return Returns the info. */ public String getInfo() { return info; } /** * @param info The info to set. */ public void setInfo(String info) { this.info = info; } public void addMeta (String key, String value) { if (meta == null) meta = new Properties(); meta.setProperty(key, value); } public String getMeta (String key) { if (meta != null) return meta.getProperty(key); else return null; } public String toString() { // limit how much text we display if (title == null) { return "Unkown Title"; } else if (title.length() > 42) { return title.substring(0, 42) + "..."; } else { return title + " on " + album; } } }

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值