Type parameters:
| T | Type of data to store. |
Properties
Methods
Add
#Adds a value to the table. If a similar hash already exists, the table remains unchanged.
Parameters:
| hash (Hash) | Hash of item. |
| data (T) | Item. |
Returns: True if the item was added, false if the hash collided.
Contains
#Tests whether a certain hash has been stored in this table.
Parameters:
| hash (Hash) | Hash to test for. |
Returns: True if the table contains the given hash.
Overwrite
#Adds a value to the table. If a similar hash already exists, the old value is overwritten.
Parameters:
| hash (Hash) | Hash of item. |
| data (T) | Item. |