de.umass.lastfm
Class Chart<T extends MusicEntry>

java.lang.Object
  extended by de.umass.lastfm.Chart<T>

public class Chart<T extends MusicEntry>
extends Object

Bean for Chart information. Contains a start date, an end date and a list of entries.

Author:
Janni Kovacs

Constructor Summary
Chart(Date from, Date to, Collection<T> entries)
           
 
Method Summary
 Collection<T> getEntries()
           
 Date getFrom()
           
static PaginatedResult<Artist> getHypedArtists(int page, String apiKey)
          Get the hyped artists chart.
static PaginatedResult<Artist> getHypedArtists(String apiKey)
          Get the hyped artists chart.
static PaginatedResult<Track> getHypedTracks(int page, String apiKey)
          Get the hyped tracks chart.
static PaginatedResult<Track> getHypedTracks(String apiKey)
          Get the hyped tracks chart.
static PaginatedResult<Track> getLovedTracks(int page, String apiKey)
          Get the most loved tracks chart.
static PaginatedResult<Track> getLovedTracks(String apiKey)
          Get the most loved tracks chart.
 Date getTo()
           
static PaginatedResult<Artist> getTopArtists(int page, String apiKey)
          Get the top artists chart.
static PaginatedResult<Artist> getTopArtists(String apiKey)
          Get the top artists chart.
static PaginatedResult<Tag> getTopTags(int page, String apiKey)
          Get the top tags chart.
static PaginatedResult<Tag> getTopTags(String apiKey)
          Get the top tags chart.
static PaginatedResult<Track> getTopTracks(int page, String apiKey)
          Get the top tracks chart.
static PaginatedResult<Track> getTopTracks(String apiKey)
          Get the top tracks chart.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Chart

public Chart(Date from,
             Date to,
             Collection<T> entries)
Method Detail

getEntries

public Collection<T> getEntries()

getFrom

public Date getFrom()

getTo

public Date getTo()

getTopArtists

public static PaginatedResult<Artist> getTopArtists(String apiKey)
Get the top artists chart.

Parameters:
apiKey - A Last.fm API key
Returns:
Top artists chart

getTopArtists

public static PaginatedResult<Artist> getTopArtists(int page,
                                                    String apiKey)
Get the top artists chart.

Parameters:
page - The page to fetch
apiKey - A Last.fm API key
Returns:
Top artists chart

getTopTags

public static PaginatedResult<Tag> getTopTags(String apiKey)
Get the top tags chart.

Parameters:
apiKey - A Last.fm API key
Returns:
Top tags chart

getTopTags

public static PaginatedResult<Tag> getTopTags(int page,
                                              String apiKey)
Get the top tags chart.

Parameters:
page - The page to fetch
apiKey - A Last.fm API key
Returns:
Top tags chart

getTopTracks

public static PaginatedResult<Track> getTopTracks(String apiKey)
Get the top tracks chart.

Parameters:
apiKey - A Last.fm API key
Returns:
Top tracks chart

getTopTracks

public static PaginatedResult<Track> getTopTracks(int page,
                                                  String apiKey)
Get the top tracks chart.

Parameters:
page - The page to fetch
apiKey - A Last.fm API key
Returns:
Top tracks chart

getLovedTracks

public static PaginatedResult<Track> getLovedTracks(String apiKey)
Get the most loved tracks chart.

Parameters:
apiKey - A Last.fm API key
Returns:
Most loved tracks chart

getLovedTracks

public static PaginatedResult<Track> getLovedTracks(int page,
                                                    String apiKey)
Get the most loved tracks chart.

Parameters:
page - The page to fetch
apiKey - A Last.fm API key
Returns:
Most loved tracks chart

getHypedTracks

public static PaginatedResult<Track> getHypedTracks(String apiKey)
Get the hyped tracks chart.

Parameters:
apiKey - A Last.fm API key
Returns:
Hyped tracks chart

getHypedTracks

public static PaginatedResult<Track> getHypedTracks(int page,
                                                    String apiKey)
Get the hyped tracks chart.

Parameters:
page - The page to fetch
apiKey - A Last.fm API key
Returns:
Hyped tracks chart

getHypedArtists

public static PaginatedResult<Artist> getHypedArtists(String apiKey)
Get the hyped artists chart.

Parameters:
apiKey - A Last.fm API key
Returns:
Hyped artists chart

getHypedArtists

public static PaginatedResult<Artist> getHypedArtists(int page,
                                                      String apiKey)
Get the hyped artists chart.

Parameters:
page - The page to fetch
apiKey - A Last.fm API key
Returns:
Hyped artists chart