Package de.umass.lastfm
Class Tasteometer
java.lang.Object
de.umass.lastfm.Tasteometer
Provides the binding for the "tasteometer.compare" method.
- Author:
- Janni Kovacs
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classContains the result of a tasteometer comparison, i.e.static enumSpecifies the type of the input for the Tasteometer.compare operation. -
Method Summary
Modifier and TypeMethodDescriptionstatic Tasteometer.ComparisonResultcompare(Tasteometer.InputType type1, String value1, Tasteometer.InputType type2, String value2, String apiKey) Get a Tasteometer score from two inputs, along with a list of shared artists.
-
Method Details
-
compare
public static Tasteometer.ComparisonResult compare(Tasteometer.InputType type1, String value1, Tasteometer.InputType type2, String value2, String apiKey) Get a Tasteometer score from two inputs, along with a list of shared artists.- Parameters:
type1- Type of the first inputvalue1- First input valuetype2- Type of the second inputvalue2- Second input valueapiKey- The Last.fm API key- Returns:
- result of Tasteometer comparison
-