ThingWorx Edge Java SDK > Application Details > Infotables > ValueCollections
  
ValueCollections
A ValueCollection is a hash map that maps strings to primitives. You can use a ValueCollection within an infotable to represent rows of data. Essentially, each row contains a string/primitive pair, such as a property name and its value or a parameter for a service and its value. When creating a ValueCollection, use the put method to store the string/primitive pair in the collection.
The following example from the sample source file, SimpleClient.java, shows how you can use a ValueCollection to specify the parameters for a service:
//A ValueCollection is used to specify the parameters of a service
ValueCollection params = new ValueCollection();

params.put("path", new StringPrimitive("/simple.txt"));
params.put("data", new StringPrimitive("Here is the
contents of the file."));
params.put("overwrite", new BooleanPrimitive(true));