Index
All Classes and Interfaces|All Packages|Serialized Form
A
- access(Object) - Method in class src.Dictionary
-
Returns the value for the key.
C
- changeHashFunction(int) - Method in class src.UniversalHash
-
Changes the hash function parameters to a new prime number and resets the collisions.
- checkCollisionThreshold(int, int) - Method in class src.UniversalHash
-
Checks if the number of collisions exceeds the threshold and increments the number of collisions ocurred.
- clear() - Method in class src.Dictionary
-
Clears the dictionary.
- clone() - Method in class src.Dictionary
-
Returns a shallow copy of the dictionary.
- copy() - Method in class src.Dictionary
-
Returns a shallow copy of the dictionary.
D
- delete(Object) - Method in class src.Dictionary
-
Removes the key, value pair from the dictionary.
- Dictionary - Class in src
-
Class that represents a python dictionary.
- Dictionary() - Constructor for class src.Dictionary
- Dictionary(Object[][]) - Constructor for class src.Dictionary
- Dictionary(Dictionary) - Constructor for class src.Dictionary
- DictItems - Class in src
-
DictItems is a class that represents a collection of key-value pairs.
- DictItems(Object[][]) - Constructor for class src.DictItems
- DictKeys - Class in src
-
DictKeys is a class that represents a collection of keys in a dictionary.
- DictKeys(Object[]) - Constructor for class src.DictKeys
- DictValues - Class in src
-
DictValues is a class that represents a collection of values in a dictionary.
- DictValues(Object[]) - Constructor for class src.DictValues
E
- equals(Object) - Method in class src.Dictionary
-
Checks if two dictionaries are equal (deep).
- equals(Object) - Method in class src.DictItems
- equals(Object) - Method in class src.DictKeys
- equals(Object) - Method in class src.DictValues
F
- fromKeys(Object[]) - Static method in class src.Dictionary
-
Returns a new dictionary with keys from array and values set to None.
- fromKeys(Object[], Object) - Static method in class src.Dictionary
-
Returns a new dictionary with keys from array and values set to defaultValue.
G
- get(Object) - Method in class src.Dictionary
-
Returns the value for the key.
- get(Object, Object) - Method in class src.Dictionary
-
Returns the value for the key, or defaultValue if not found.
H
- has(Object) - Method in class src.Dictionary
-
Returns if the key exists in the dictionary.
- hashCode() - Method in class src.Dictionary
-
Returns the hash code of the dictionary.
- hashCode() - Method in class src.DictItems
- hashCode() - Method in class src.DictKeys
- hashCode() - Method in class src.DictValues
- hashFunction(Object, int) - Method in class src.UniversalHash
-
Calculates the index of the hash table for a given key.
I
- items() - Method in class src.Dictionary
-
Returns an array of key, value pairs.
- iterator() - Method in class src.DictItems
-
Returns an iterator over the items in the collection
- iterator() - Method in class src.DictKeys
-
Returns an iterator over the keys in the collection.
- iterator() - Method in class src.DictValues
-
Returns an iterator over the values in the collection.
K
- KeyError - Exception Class in src.errors
-
KeyError is thrown when a key is not found in a dictionary.
- KeyError(String) - Constructor for exception class src.errors.KeyError
- keys() - Method in class src.Dictionary
-
Returns an array of the keys from the dictionary.
L
- length() - Method in class src.Dictionary
-
Returns the number of items in the dictionary.
- length() - Method in class src.DictItems
-
Returns the number of items in the collection.
- length() - Method in class src.DictKeys
-
Returns the number of keys in the collection.
- length() - Method in class src.DictValues
-
Returns the number of values in the collection.
- list() - Method in class src.Dictionary
-
Returns an array with the dictionary keys.
M
- merge(Dictionary) - Method in class src.Dictionary
-
Returns a new dictionary with the keys and values of the other two.
N
- NonHashableKey - Exception Class in src.errors
-
NonHashableKey is thrown when a key is not hashable.
- NonHashableKey(String) - Constructor for exception class src.errors.NonHashableKey
- NonImmutableKey - Exception Class in src.errors
-
NonImmutableKey is thrown when a key is immutable.
- NonImmutableKey(String) - Constructor for exception class src.errors.NonImmutableKey
P
- pop(Object) - Method in class src.Dictionary
-
Removes the key, value pair and returns the value with the key.
- pop(Object, Object) - Method in class src.Dictionary
-
Removes the key, value pair and return the value with the key, if not found returns defaultValue.
- popItem() - Method in class src.Dictionary
-
Removes the last key, value pair and return the pair.
- put(Object, Object) - Method in class src.Dictionary
-
Add a key, value pair to the dictionary.
R
- reversed() - Method in class src.Dictionary
-
Returns an array with the dictionary keys in reversed order of insertion.
S
- setDefault(Object) - Method in class src.Dictionary
-
Return the value of the key, if it does not exist the key is inserted.
- setDefault(Object, Object) - Method in class src.Dictionary
-
Return the value of the key, if it does not exist the key is inserted.
- src - package src
-
This package contains the classes for a simple dictionary application.
- src.errors - package src.errors
-
This package contains the custom exceptions used in the java dictionary.
T
- toArray() - Method in class src.DictItems
-
Returns a copied list of the dictionary values.
- toArray() - Method in class src.DictKeys
-
Returns a copied list of the dictionary keys.
- toArray() - Method in class src.DictValues
-
Returns a copied list of the dictionary values.
- toString() - Method in class src.Dictionary
-
Returns a string representation of the dictionary.
- toString() - Method in class src.DictItems
-
Returns a string representation of the items in the collection.
- toString() - Method in class src.DictKeys
-
Returns a string representation of the keys in the collection.
- toString() - Method in class src.DictValues
-
Returns a string representation of the DictValues object.
U
- UniversalHash - Class in src
-
Class for implementing a universal hash function.
- UniversalHash() - Constructor for class src.UniversalHash
- update(Object[][]) - Method in class src.Dictionary
-
Updates the values of the keys in the given key, value array and if does not exists, insert them.
- update(Dictionary) - Method in class src.Dictionary
-
Updates the values of the keys in the given dictionary and if does not exist, insert them.
V
- values() - Method in class src.Dictionary
-
Returns an array of the values from the dictionary.
All Classes and Interfaces|All Packages|Serialized Form