Here you can find the source of getVendorIdsAndNames(String vendorCsv, List
Parameter | Description |
---|---|
vendorCsv | a parameter |
vendorNames | a parameter |
vendorIDs | a parameter |
private static void getVendorIdsAndNames(String vendorCsv, List<String> vendorNames, List<String> vendorIDs)
//package com.java2s; //License from project: Apache License import java.util.HashMap; import java.util.List; import java.util.Map; public class Main { private static Map<String, String> mapVendorNameToVendorId = new HashMap<String, String>(); /**//from www. j a va 2 s .c om * @param vendorCsv * @param vendorNames * @param vendorIDs */ private static void getVendorIdsAndNames(String vendorCsv, List<String> vendorNames, List<String> vendorIDs) { if (vendorCsv != null && vendorCsv.length() > 0) { vendorNames.add(vendorCsv); if (mapVendorNameToVendorId != null && mapVendorNameToVendorId.size() > 0) { vendorIDs.add(mapVendorNameToVendorId.get(vendorCsv)); } } } }