public interface Track
A track/song that is stored in a database. The implementation of this is service provider-dependent.
-
Method Summary
Modifier and TypeMethodDescriptiongetAlbum()The album this track is from.The primary artist that made this track.Gets all artists that worked on this track.intDuration of the track in milliseconds.getId()The unique ID of the track.getName()The name of the track.The service provider that this track is from.
-
Method Details
-
getId
String getId()The unique ID of the track. This means different things for each implementation.- Returns:
- The unique ID of the track
-
getName
-
getArtist
Artist getArtist()The primary artist that made this track.- Returns:
- The primary artist that made this track
-
getArtists
-
getAlbum
-
getDuration
int getDuration()Duration of the track in milliseconds.- Returns:
- The millisecond duration of the track
-
getServiceProvider
Optional<ServiceProvider> getServiceProvider()The service provider that this track is from.- Returns:
- The service provider that this track is from
-