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