|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.umass.lastfm.Tag
Bean for Tag data and provides methods for global tags.
Method Summary | |
int |
compareTo(Object o)
|
static List |
filter(Collection tags,
double percentage)
Filters tags from the given list; retains only those tags with a count higher than the given percentage of the total sum as from getTagCountSum(Collection) . |
int |
getCount()
|
static Tag |
getInfo(String tag,
Locale locale,
String apiKey)
Gets the metadata for a tag. |
static Tag |
getInfo(String tag,
String apiKey)
Gets the metadata for a tag. |
String |
getName()
|
int |
getReach()
|
static Collection |
getSimilar(String tag,
String apiKey)
Search for tags similar to this one. |
static long |
getTagCountSum(Collection tags)
Returns the sum of all count elements in the results. |
int |
getTaggings()
Returns the number of taggings of this specific tag. |
static Collection |
getTopAlbums(String tag,
String apiKey)
|
static Collection |
getTopArtists(String tag,
String apiKey)
|
static Collection |
getTopTags(String apiKey)
|
static Collection |
getTopTracks(String tag,
String apiKey)
|
String |
getUrl()
|
static Chart |
getWeeklyArtistChart(String tag,
int limit,
String apiKey)
|
static Chart |
getWeeklyArtistChart(String tag,
String apiKey)
|
static Chart |
getWeeklyArtistChart(String tag,
String from,
String to,
int limit,
String apiKey)
|
static LinkedHashMap |
getWeeklyChartList(String tag,
String apiKey)
|
static Collection |
getWeeklyChartListAsCharts(String tag,
String apiKey)
|
Date |
getWikiLastChanged()
|
String |
getWikiSummary()
|
String |
getWikiText()
|
boolean |
isStreamable()
|
static Collection |
search(String tag,
int limit,
String apiKey)
|
static Collection |
search(String tag,
String apiKey)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public int getCount()
public int getTaggings()
getCount()
.
getInfo(String, String)
public String getName()
public String getUrl()
public boolean isStreamable()
public int getReach()
public Date getWikiLastChanged()
public String getWikiSummary()
public String getWikiText()
public static long getTagCountSum(Collection tags)
count
elements in the results.
tags
- a list of tags
public static List filter(Collection tags, double percentage)
getTagCountSum(Collection)
.
tags
- list of tagspercentage
- cut off percentage
public static Collection getSimilar(String tag, String apiKey)
tag
- The tag nameapiKey
- A Last.fm API key
Tag
spublic static Collection getTopTags(String apiKey)
public static Collection getTopAlbums(String tag, String apiKey)
public static Collection getTopTracks(String tag, String apiKey)
public static Collection getTopArtists(String tag, String apiKey)
public static Collection search(String tag, String apiKey)
public static Collection search(String tag, int limit, String apiKey)
public static Chart getWeeklyArtistChart(String tag, String apiKey)
public static Chart getWeeklyArtistChart(String tag, int limit, String apiKey)
public static Chart getWeeklyArtistChart(String tag, String from, String to, int limit, String apiKey)
public static LinkedHashMap getWeeklyChartList(String tag, String apiKey)
public static Collection getWeeklyChartListAsCharts(String tag, String apiKey)
public static Tag getInfo(String tag, String apiKey)
tag
- The tag nameapiKey
- A Last.fm API key
public static Tag getInfo(String tag, Locale locale, String apiKey)
tag
- The tag namelocale
- The language to fetch info in, or null
apiKey
- A Last.fm API key
public int compareTo(Object o)
compareTo
in interface Comparable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |