|
Framework Professional Edition Package |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.prosyst.util.hash.HashIntObjNS
com.prosyst.util.hash.HashIntObjS
public final class HashIntObjS
Synchronized extension of com.prosyst.util.hash.HashIntObjNS
| Field Summary |
|---|
| Fields inherited from class com.prosyst.util.hash.HashIntObjNS |
|---|
keys, next, values |
| Constructor Summary | |
|---|---|
HashIntObjS()
|
|
HashIntObjS(int capacity)
|
|
HashIntObjS(int capacity,
double lf)
|
|
| Method Summary | |
|---|---|
java.lang.Object |
get(int key)
Returns an value which is mapped to the key key. |
void |
put(int key,
java.lang.Object value)
Adds in the hashtable an element with key key and value value. |
java.lang.Object |
remove(int key)
Removes an element with the specified key from the table. |
void |
removeAll()
Empties the hash table |
int |
size()
Returns the count of elements currently in the table |
| Methods inherited from class com.prosyst.util.hash.HashIntObjNS |
|---|
rehash |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HashIntObjS()
public HashIntObjS(int capacity)
public HashIntObjS(int capacity,
double lf)
| Method Detail |
|---|
public void put(int key,
java.lang.Object value)
HashIntObjNSkey key and value value.
If an element with the specified key is already in the table only change it's value.
put in class HashIntObjNSkey - the key of the inserted elementvalue - the value of the inserted elementpublic java.lang.Object get(int key)
HashIntObjNSkey key.
get in class HashIntObjNSkey - the key we are searching for
public java.lang.Object remove(int key)
HashIntObjNS
remove in class HashIntObjNSkey - the key of the element we want to remove
public int size()
HashIntObjNS
size in class HashIntObjNSpublic void removeAll()
HashIntObjNS
removeAll in class HashIntObjNS
|
Framework Professional Edition Package |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||