public class NamedValues extends Object
Modifier and Type | Field and Description |
---|---|
protected Vector<String> |
labels |
protected Vector<String[]> |
values |
Constructor and Description |
---|
NamedValues() |
Modifier and Type | Method and Description |
---|---|
void |
add(String name,
Vector value)
Add a named vector of values to a NameValues object.
|
String[] |
getLabels()
Gets all the names in the named/values system at once, as an array of Strings.
|
String[][] |
getValues()
Gets all the values in the named/values system.
|
public void add(String name, Vector value)
name
- The name of the list of values to add, eg "girlscouts"value
- The list of values associated with name, eg {"Caroline", "Mary", "Beth"}public String[] getLabels()
public String[][] getValues()
Copyright © 2014. All Rights Reserved.