|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sk.baka.ambient.collection.TrackMetadataBean.Builder
public static final class TrackMetadataBean.Builder
The mutable version of TrackMetadataBean
. Use it to gradually
build the bean. Thread-unsafe.
Field Summary | |
---|---|
String |
album
Album name. |
String |
artist
Artist. |
String |
artistDesc
The artist's description. |
String |
artistURL
A link to artist's page |
int |
bitrate
Bitrate in kbps. |
String |
buyURL
You can buy the album here |
String |
composer
Original composer. |
long |
fileSize
File size in bytes. |
int |
frequency
Frequency in hz. |
String |
genre
Genre. |
int |
length
Length in seconds. |
String |
license
The license URL |
String |
location
Location on the filesystem. |
TrackOriginEnum |
origin
The track location. |
String |
title
Track title. |
String |
trackNumber
Track number. |
String |
yearReleased
The year released. |
Constructor Summary | |
---|---|
TrackMetadataBean.Builder()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public String yearReleased
public int frequency
public String buyURL
public String license
public String artistURL
public String artistDesc
public String title
public String artist
public String composer
public String album
public String genre
public String trackNumber
public String location
public int length
public int bitrate
public long fileSize
public TrackOriginEnum origin
Constructor Detail |
---|
public TrackMetadataBean.Builder()
Method Detail |
---|
public TrackMetadataBean.Builder setYearReleased(String yearReleased)
yearReleased
- the yearReleased to set
public TrackMetadataBean.Builder setFrequency(int frequency)
frequency
- the frequency to set
public TrackMetadataBean.Builder setBuyURL(String buyURL)
buyURL
- the buyURL to set
public TrackMetadataBean.Builder setLicense(String license)
license
- the license to set
public TrackMetadataBean.Builder setArtistURL(String artistURL)
artistURL
- the artistURL to set
public TrackMetadataBean.Builder setArtistDesc(String artistDesc)
artistDesc
- the artistDesc to set
public TrackMetadataBean.Builder setTitle(String title)
title
- the title to set
public TrackMetadataBean.Builder setArtist(String artist)
artist
- the artist to set
public TrackMetadataBean.Builder setComposer(String composer)
composer
- the composer to set
public TrackMetadataBean.Builder setAlbum(String album)
album
- the album to set
public TrackMetadataBean.Builder setGenre(String genre)
genre
- the genre to set
public TrackMetadataBean.Builder setTrackNumber(String trackNumber)
trackNumber
- the trackNumber to set
public TrackMetadataBean.Builder setLocation(String location)
location
- the location to set
public TrackMetadataBean.Builder setLength(int length)
length
- the length to set
public TrackMetadataBean.Builder setBitrate(int bitrate)
bitrate
- the bitrate to set
public TrackMetadataBean.Builder setFileSize(long fileSize)
fileSize
- the fileSize to set
public TrackMetadataBean.Builder setOrigin(TrackOriginEnum origin)
origin
- the origin to set
public TrackMetadataBean build(long trackId)
trackId
- the database track id
public TrackMetadataBean.Builder getData(TrackMetadataBean track)
track
- copy data from given track.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |