Class Chart<T extends MusicEntry>

java.lang.Object
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 Details

  • Method Details

    • 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