public class HashAlgorithm<K,V>
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears everything in the hash table
|
boolean |
containsKey(K key)
Looks for a key already present in the hash table
|
V |
getValue(K s)
Retrieves an Exoplanet from the given key in the hash table
|
boolean |
isEmpty()
Checks to see if there is nothing in the hashtable
|
java.util.ArrayList<K> |
keySet()
Retrieves all the keys in the hash table
|
void |
put(K key,
V value)
Adds an Exoplanet to the hash table
|
void |
remove(K key)
Removes an Exoplanet at the specified key
|
int |
size()
Determines how many exoplanet objects are currently being stored in the hashtable
|
public boolean containsKey(K key)
public V getValue(K s)
s
- is a key that will be used to access it's respective exoplanet objectpublic java.util.ArrayList<K> keySet()
public void clear()
public int size()
public boolean isEmpty()
public void put(K key, V value)
key
- is the unique identification value that the object hasvalue
- is the exoplanet that is going to be storedpublic void remove(K key)
key
- is the unique identification value that the object has