T - The return type of the query.public interface Query<T extends Serializable>
| Modifier and Type | Method and Description |
|---|---|
void |
addParameter(String key,
Object value)
Add a parameter to the query parameters.
|
String |
getMethod()
Get the last.fm method that is fetched by this query.
|
Map<String,String> |
getParameters()
Get query parameters.
|
T |
parse(Element root)
Parse the result and return the Object model.
|
Map<String,String> getParameters()
String getMethod()
void addParameter(String key, Object value)
key - The name of the parameter.value - The value of this parameter. This expects that the object has a reasonable
toString() method, otherwise the String has to be passed manually instead of the
object.Copyright © 2012. All Rights Reserved.