public class IterableMap<K,V> extends HashMap<K, V>
Iterable generic Table Wrapper
Inherits from: HashMap · See this type for inherited members.
construct()construct(thistype base)Create a new map by copying all elements from another list into it
override function put(K key, V value)Saves the given value under the given key
override function remove(K key)Removes the key-value pair saved under the given key
override function flush()Remove all data from this map
iterator() returns HLIterator<K>Returns an iterator that iterates over the map’s keys. Calling remove() on it removes the whole entry (key, value and size), not just the key.
hasKey(K key) returns boolReturns whether this map uses the given key
removeValue(V val, bool all)Removes either a single occurrence or all occurrences of the value from the map
addAll(IterableMap<K, V> map)Copies all elements from another map into this one Use with caution, since it will replace elements that were under the same key!
copy() returns IterableMap<K, V>Returns a shallow copy of this map
override function size() returns intReturns the length of this IterableMap *
forEach(IMItrClosure<K, V> itr) returns IterableMap<K, V>Executes the closure for each key-value pair. The loop bound is fixed on entry, so the callback must not add or remove entries of this map; use iterator() with remove() for that.