Your browser does not support HTML5 canvas. Fork me on GitHub

Available Packages:

HashMap

Source

class HashMap

Source

Generic Table Wrapper

int size

Source

function flush()

Source

function get(K key) returns V

Source

Retrieves the value saved under the given key

function getAndRemove(K key) returns V

Source

Retrieves the value saved under the given key and removes it

function has(K key) returns boolean

Source

Whether a value exists under the given key or not

function put(K key, V value)

Source

Saves the given value under the given key

function remove(K key)

Source

Removes the value saved under the given key

function size() returns int

Source

interface IMItrClosure

Source

function run(K key, V value)

Source

class IterableMap

Source

Iterable generic Table Wrapper

HashList keys

Source

function addAll(IterableMap map)

Source

Copies all elements from another map into this one Use with caution, since it will replace elements that were under the same key!

function copy() returns IterableMap

Source

Returns a shallow copy of this map

function flush()

Source

Remove all data from this map

function forEach(IMItrClosure itr) returns IterableMap

Source

Executes the closure for each key-value pair

function getAndRemove(K key) returns V

Source

Retrieves the value saved under the given key and removes it

function hasKey(K key) returns boolean

Source

Returns whether this map uses the given key

function iterator() returns HLIterator

Source

Returns an iterator that iterates over the map's keys

function put(K key, V value)

Source

Saves the given value under the given key

function remove(K key)

Source

Removes the key-value pair saved under the given key

function removeValue(V val, boolean all)

Source

Removes either a single occurence or all occurences from of the value from the map

function size() returns int

Source

Returns the length of this IterableMap