Package com.creditcall.chipdnamobile
Class Parameters
- java.lang.Object
-
- com.creditcall.chipdnamobile.Parameters
-
public class Parameters extends java.lang.ObjectCreated by shingai.manyiwa on 12/06/2017.
-
-
Constructor Summary
Constructors Constructor Description Parameters()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(java.lang.String key, int value)Adds the value with the specified key.voidadd(java.lang.String key, java.lang.String value)Adds the value with the specified key.booleancontainsKey(java.lang.String key)Determines whether theParameterscontains the specified key.intcount()The number of items held.java.lang.StringgetValue(java.lang.String key).booleanisEmpty()Determines whether theParameterscontains any items.voidremove(java.lang.String key)Removes the value with the specified key.java.util.List<Parameter>toList()Puts all objects into a list and is returned.
-
-
-
Method Detail
-
add
public void add(java.lang.String key, java.lang.String value)Adds the value with the specified key.- Parameters:
key- Key.value- Value.
-
add
public void add(java.lang.String key, int value)Adds the value with the specified key.- Parameters:
key- Key.value- Value.
-
remove
public void remove(java.lang.String key)
Removes the value with the specified key.- Parameters:
key- Key.
-
count
public int count()
The number of items held.- Returns:
- Size of the data structure.
-
isEmpty
public boolean isEmpty()
Determines whether theParameterscontains any items.- Returns:
- true if empty.
-
containsKey
public boolean containsKey(java.lang.String key)
Determines whether theParameterscontains the specified key.- Parameters:
key- Key value- Returns:
- true if the key is held within the data structure.
-
getValue
public java.lang.String getValue(java.lang.String key)
. Gets the value associated with the specified key.ParameterKeysfor possible key values.- Parameters:
key- value- Returns:
- String of the value if contained within
Parameters, else null.
-
toList
public java.util.List<Parameter> toList()
Puts all objects into a list and is returned.- Returns:
- List
-
-