Interface KeyMap.TraversalEvaluator<K,V>
- Type Parameters:
K- The type of the key.V- The type of the value.
public static interface KeyMap.TraversalEvaluator<K,V>
A visitor for a traversal over the union of multiple hash maps. The visitor is called for
each key in the union of the maps and all values associated with that key (one per map, but
multiple across maps).
-
Method Summary
Modifier and TypeMethodDescriptionvoidkeyDone()Called when the traversal for the current key is complete.voidCalled for each value found for the current key.voidstartNewKey(K key) Called whenever the traversal starts with a new key.
-
Method Details
-
startNewKey
Called whenever the traversal starts with a new key.- Parameters:
key- The key traversed.- Throws:
Exception- Method forwards all exceptions.
-
nextValue
Called for each value found for the current key.- Parameters:
value- The next value.- Throws:
Exception- Method forwards all exceptions.
-
keyDone
Called when the traversal for the current key is complete.- Throws:
Exception- Method forwards all exceptions.
-