public class TmdbParameters extends Object
| Constructor and Description |
|---|
TmdbParameters()
Construct an empty set of parameters
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Param key,
Boolean value)
Add a boolean parameter to the collection
|
void |
add(Param key,
Float value)
Add a float parameter to the collection
|
void |
add(Param key,
Integer value)
Add an integer parameter to the collection
|
void |
add(Param key,
String value)
Add a string parameter to the collection
|
void |
add(Param key,
String[] value)
Add an array parameter to the collection
|
Object |
get(Param key)
Get a parameter from the collection
|
Set<Map.Entry<Param,String>> |
getEntries()
Get the entry set of the parameters
|
boolean |
has(Param key)
Check to see if the collection has a certain parameter
|
boolean |
isEmpty()
Check to see if the collection has no items
|
boolean |
isNotEmpty()
Check to see if the collection has items
|
void |
remove(Param key)
Remove a parameter from the collection
|
String |
toList(String[] appendToResponse)
Append any optional parameters to the URL
|
String |
toString() |
public Set<Map.Entry<Param,String>> getEntries()
public void add(Param key, String[] value)
key - Parameter to addvalue - The array value to use (will be converted into a comma separated list)public void add(Param key, String value)
key - Parameter to addvalue - The value to add (will be checked to ensure it's valid)public void add(Param key, Integer value)
key - Parameter to addvalue - The value to add (will be checked to ensure greater than zero)public void add(Param key, Float value)
key - Parameter to addvalue - The value to add (will be checked to ensure greater than zero)public void add(Param key, Boolean value)
key - Parameter to addvalue - The value to add (will be checked to ensure greater than zero)public boolean has(Param key)
key - The Parameter to checkpublic Object get(Param key)
key - The parameter to getpublic void remove(Param key)
key - parameter to removepublic boolean isEmpty()
public boolean isNotEmpty()
public String toList(String[] appendToResponse)
appendToResponse - String array to convert to a comma listCopyright © 2012–2017. All rights reserved.