public class ParamValueList extends java.lang.Object implements java.lang.Iterable<ParamValue>
Constructor and Description |
---|
ParamValueList()
Create instance of ParamValueList class.
|
ParamValueList(java.util.ArrayList<ParamValue> values)
Create instance of ParamValueList class.
|
ParamValueList(ParamName[] names)
Create instance of ParamValueList class.
|
ParamValueList(ParamValue[] values)
Create instance of ParamValueList class.
|
ParamValueList(ParamValueList values)
Create instance of ParamValueList class.
|
Modifier and Type | Method and Description |
---|---|
void |
add(java.util.ArrayList<ParamValue> params)
Adds the ArrayList to list.
|
void |
add(ParamName name)
Adds the ParamName to list.
|
void |
add(ParamName[] names)
Adds the array of ParamName to list.
|
void |
add(ParamName name,
int value)
Adds the parameter to list.
|
void |
add(ParamValue param)
Adds the ParamValue to list.
|
void |
add(ParamValue[] params)
Adds the array of ParamValue to list.
|
void |
add(ParamValueList params)
Adds the ParamValueList to list.
|
void |
clear()
Clears the list.
|
ParamValue |
get(int index)
Returns the ParamValue from list.
|
ParamValue |
get(ParamName name)
Returns the ParamValue from list.
|
boolean |
getBoolean(ParamName name)
Returns the value as boolean from list
|
int |
getLength()
Return the length of list.
|
int |
getValue(ParamName name)
Returns the value from list.
|
java.util.Iterator<ParamValue> |
iterator() |
void |
remove(ParamName name)
Removes the ParamName from list.
|
ParamValueList |
subList(int start,
int end) |
java.lang.String |
toString() |
public ParamValueList()
public ParamValueList(ParamName[] names)
names
- Array of ParamNamepublic ParamValueList(ParamValue[] values)
values
- Array of ParamValuepublic ParamValueList(java.util.ArrayList<ParamValue> values)
values
- Instance of ArrayListpublic ParamValueList(ParamValueList values)
values
- Instance of ParamValueList.public int getLength()
public void add(ParamName name)
name
- A ParamName that specifies the name of parameter.public void add(ParamName[] names)
names
- An array of ParamName that specifies the name of parameter.public void add(ParamName name, int value)
name
- A ParamName that specifies the name of parameter.value
- An integer that specifies the value of parameter.public void add(ParamValue param)
param
- A ParamValue that specifies the parameter names and values of the barcodepublic void add(ParamValue[] params)
params
- An array of ParamValue that specifies the parameter names and values of the barcodepublic void add(java.util.ArrayList<ParamValue> params)
params
- An instance of the ArrayList.public void add(ParamValueList params)
params
- An instance of the ParamValueList.public void clear()
public void remove(ParamName name)
name
- A ParamName that specifies the name of parameter.public ParamValue get(ParamName name)
name
- A ParamName that specifies the name of parameter.public ParamValue get(int index)
index
- An integer that specifies the index of list.public int getValue(ParamName name)
name
- A ParamName that specifies the name of parameter.public boolean getBoolean(ParamName name)
name
- A ParamName that specifies the name of parameter.public ParamValueList subList(int start, int end)
public java.util.Iterator<ParamValue> iterator()
iterator
in interface java.lang.Iterable<ParamValue>
public java.lang.String toString()
toString
in class java.lang.Object