|
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.HashObjIntNS
com.prosyst.util.hash.HashObjIntS
public final class HashObjIntS
Synchronized extension of com.prosyst.util.hash.HashObjIntNS
| Field Summary |
|---|
| Fields inherited from class com.prosyst.util.hash.HashObjIntNS |
|---|
keys, next, values |
| Constructor Summary | |
|---|---|
HashObjIntS()
|
|
HashObjIntS(int capacity)
|
|
HashObjIntS(int capacity,
double lf)
|
|
| Method Summary | |
|---|---|
int |
get(java.lang.Object key)
Returns an value which is mapped to the key key. |
void |
put(java.lang.Object key,
int value)
Adds in hashtable an element with key key and value value. |
int |
remove(java.lang.Object 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.HashObjIntNS |
|---|
containsKey, getKeys, rehash |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HashObjIntS()
public HashObjIntS(int capacity)
public HashObjIntS(int capacity,
double lf)
| Method Detail |
|---|
public void put(java.lang.Object key,
int value)
HashObjIntNSkey key and value value.
If an element with the specified key is already in the table only change it's value.
put in class HashObjIntNSkey - the key of the inserted elementvalue - the value of the inserted elementpublic int get(java.lang.Object key)
HashObjIntNSkey key. If there is no
such a key, throws NoSuchElementException.
get in class HashObjIntNSkey - the key we are searching for
public int remove(java.lang.Object key)
HashObjIntNSNoSuchElementException if there is no element with this key.
remove in class HashObjIntNSkey - the key of the element we want to removepublic int size()
HashObjIntNS
size in class HashObjIntNSpublic void removeAll()
HashObjIntNS
removeAll in class HashObjIntNS
|
Framework Professional Edition Package |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||