T - The return type of the query.public abstract class AbstractQuery<T extends Serializable> extends Object implements Query<T>
Query.| Constructor and Description |
|---|
AbstractQuery(String method) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAdditionalParameters() |
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.
|
public AbstractQuery(String method)
public final Map<String,String> getParameters()
QuerygetParameters in interface Query<T extends Serializable>protected void addAdditionalParameters()
public final String getMethod()
QuerygetMethod in interface Query<T extends Serializable>public final void addParameter(String key, Object value)
QueryaddParameter in interface Query<T extends Serializable>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.