K - V - public class PlaceKeysValuesInArrayLists<K,V> extends java.lang.Object implements TraversalTask<K,V>
| Constructor and Description |
|---|
PlaceKeysValuesInArrayLists()
Creates two ArrayList objects: one for the keys and one for the values.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.ArrayList<K> |
getKeys()
Returns reference to ArrayList holding keys.
|
java.util.ArrayList<V> |
getValues()
Returns reference to ArrayList holiding values.
|
void |
performTask(K key,
V value)
Adds key/value to the corresponding ArrayLists.
|
public PlaceKeysValuesInArrayLists()
public void performTask(K key, V value)
performTask in interface TraversalTask<K,V>public java.util.ArrayList<K> getKeys()
public java.util.ArrayList<V> getValues()