Package com.kaltura.client
Class Params
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<K,V>
-
- java.util.LinkedHashMap<String,Object>
-
- com.kaltura.client.Params
-
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,Object>
public class Params extends LinkedHashMap<String,Object> implements Serializable
Helper class that provides a collection of Kaltura parameters (key-value pairs).- Author:
- jpotts
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Constructor Summary
Constructors Constructor Description Params()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(String key, EnumAsInt value)Pay attention - this function does not support setting value to null.voidadd(String key, EnumAsString value)Pay attention - this function does not support setting value to null.voidadd(String key, Params params)voidadd(String key, ObjectBase object)voidadd(String key, Boolean value)voidadd(String key, Double value)voidadd(String key, Integer value)voidadd(String key, Long value)voidadd(String key, String value)<T extends ObjectBase>
voidadd(String key, List<T> array)<T extends ObjectBase>
voidadd(String key, Map<String,T> map)voidclear()Iterable<String>getKeys()ParamsgetParams(String key)voidlink(String destKey, String requestId, String sourceKey)protected voidlink(Deque<String> destinationKeys, String source)protected voidputNull(String key)StringtoQueryString()StringtoQueryString(String prefix)StringtoString()-
Methods inherited from class java.util.LinkedHashMap
containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
-
Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
-
Methods inherited from class java.util.AbstractMap
equals, hashCode
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
-
-
-
-
Method Detail
-
toQueryString
public String toQueryString()
-
add
public void add(String key, ObjectBase object)
-
add
public <T extends ObjectBase> void add(String key, List<T> array)
-
add
public <T extends ObjectBase> void add(String key, Map<String,T> map)
-
putNull
protected void putNull(String key)
-
add
public void add(String key, EnumAsString value)
Pay attention - this function does not support setting value to null.- Parameters:
key- param namevalue- param value
-
add
public void add(String key, EnumAsInt value)
Pay attention - this function does not support setting value to null.- Parameters:
key- param namevalue- param value
-
clear
public void clear()
-
getParams
public Params getParams(String key) throws APIException
- Throws:
APIException
-
toString
public String toString()
- Overrides:
toStringin classAbstractMap<String,Object>
-
-