K - The key type of the mapV - The value type of the map/collectionpublic final class IterHelper<K,V> extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
IterHelper.IterCallback<V>
A callback mechanism for processing Iterables
|
static class |
IterHelper.MapIterCallback<K,V>
A callback mechanism for processing Maps
|
| Constructor and Description |
|---|
IterHelper() |
| Modifier and Type | Method and Description |
|---|---|
void |
loopMap(Object x,
IterHelper.MapIterCallback<K,V> callback)
Process a Map
|
void |
loopOrSingle(Object x,
IterHelper.IterCallback<V> callback)
Calls eval for each entry found, or just once if the "x" isn't iterable/collection/list/etc.
|
public void loopMap(Object x, IterHelper.MapIterCallback<K,V> callback)
x - the object to processcallback - the callbackpublic void loopOrSingle(Object x, IterHelper.IterCallback<V> callback)
x - the object processcallback - the callback