# ParamValueList ## ParamValueList Creates and initializes a ParamValueList object. ```java public ParamValueList(); ``` **Sample Code**: ```java ParamValueList paramValueList = new ParamValueList(); ``` --- ## add Adds a parameter to the list. ### Signature ```java public void add(ParamName name); public void add(ParamName name, int value); public void add(ParamValue param); ``` ### Parameter List #### add(ParamName name) ```{list-table} :align: left :class: list-table * - Parameter Name - In/Out - Type - Description * - name - In - [ParamName](Enum.md#paramname) - Barcode type, enumeration [ParamName](Enum.md#paramname) ``` #### add(ParamName name, int value) ```{list-table} :align: left :class: list-table * - Parameter Name - In/Out - Type - Description * - name - In - [ParamName](Enum.md#paramname) - Barcode type, enumeration [ParamName](Enum.md#paramname) * - value - In - int - Value corresponding to the barcode type ``` #### add(ParamValue param) ```{list-table} :align: left :class: list-table * - Parameter Name - In/Out - Type - Description * - param - In - [ParamValue](ParamValue.md) object - Barcode scan parameter, [ParamValue](ParamValue.md) object ``` ### Sample Code ```java paramValueList.add(ParamName.Code128); paramValueList.add(ParamName.Code128, 1); ParamValue param = new ParamValue(); paramValueList.add(param); ``` ---- ## getLength Gets the length of the ParamValue set. ```java public int getLength(); ``` ```{list-table} :align: left :class: list-table * - Parameter Name - In/Out - Type - Description * - Return Value - Out - int - Length of the ParamValue set ``` **Sample Code**: ```java int length = paramValueList.getLength(); ``` --- ## getValue Gets the value from the barcode scan parameter list. ```java public int getValue(ParamName name); ``` ```{list-table} :align: left :class: list-table * - Parameter Name - In/Out - Type - Description * - name - In - [ParamName](Enum.md#paramname) - Barcode type, enumeration [ParamName](Enum.md#paramname) * - Return Value - Out - int - Value corresponding to the barcode type ``` **Sample Code**: ```java int value = paramValueList.get(ParamName.Code39); ```