public interface MusicPopulator
Populates music types with data from the
MusicCache, used before accessing the data.-
Method Summary
Modifier and TypeMethodDescriptioninitiallyPopulateAlbum(AlbumType albumType) If eager loading is enabled, the given album is populated viapopulateAlbum(AlbumType).initiallyPopulateCollection(CollectionType collectionType) If eager loading is enabled, the given album is populated viapopulateCollection(CollectionType).initiallyPopulateSong(SongType songType) If eager loading is enabled, the given song is populated viapopulateSong(SongType).voidpopulateAlbum(AlbumType albumType) Takes anAlbumTypeand collects all relevant data viaMusicCacheand populates the type withSongType.populateSpotifyData(Track).voidpopulateCollection(CollectionType collectionType) Takes anCollectionTypeand collects all relevant data viaMusicCacheand populates the type withCollectionType.populateSpotifyData(Playlist).voidpopulateSong(SongType songType) Takes aSongTypeand collects all relevant data viaMusicCacheand populates the type withSongType.populateSpotifyData(Track).
-
Method Details
-
initiallyPopulateSong
If eager loading is enabled, the given song is populated viapopulateSong(SongType). Otherwise, nothing occurs. TODO: Make this into some kind of factory for SongTypes?- Parameters:
songType- The song to populate- Returns:
- The supplied
SongType
-
populateSong
Takes aSongTypeand collects all relevant data viaMusicCacheand populates the type withSongType.populateSpotifyData(Track).- Parameters:
songType- The song to populate
-
initiallyPopulateAlbum
If eager loading is enabled, the given album is populated viapopulateAlbum(AlbumType). Otherwise, nothing occurs. TODO: Make this into some kind of factory for AlbumTypes?- Parameters:
albumType- The album to populate- Returns:
- The supplied
AlbumType
-
populateAlbum
Takes anAlbumTypeand collects all relevant data viaMusicCacheand populates the type withSongType.populateSpotifyData(Track).- Parameters:
albumType- The album to populate
-
initiallyPopulateCollection
If eager loading is enabled, the given album is populated viapopulateCollection(CollectionType). Otherwise, nothing occurs. TODO: Make this into some kind of factory for CollectionTypes?- Parameters:
collectionType- The album to populate- Returns:
- The supplied
AlbumType
-
populateCollection
Takes anCollectionTypeand collects all relevant data viaMusicCacheand populates the type withCollectionType.populateSpotifyData(Playlist).- Parameters:
collectionType- The collection to populate
-