Package com.db4o.foundation
Class Hashtable4
- java.lang.Object
-
- com.db4o.foundation.HashtableBase
-
- com.db4o.foundation.Hashtable4
-
public class Hashtable4 extends HashtableBase implements DeepClone, Map4
-
-
Field Summary
-
Fields inherited from class com.db4o.foundation.HashtableBase
_mask, _maximumSize, _size, _table, _tableSize
-
-
Constructor Summary
Constructors Modifier Constructor Description Hashtable4()
Hashtable4(int size)
protected
Hashtable4(DeepClone cloneOnlyCtor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsAllKeys(Iterable4 collection)
boolean
containsAllKeys(Iterator4 iterator)
boolean
containsKey(java.lang.Object key)
java.lang.Object
deepClone(java.lang.Object obj)
The parameter allows passing one new object so parent references can be corrected on children.protected Hashtable4
deepCloneInternal(Hashtable4 ret, java.lang.Object obj)
void
forEachKeyForIdentity(Visitor4 visitor, java.lang.Object obj)
java.lang.Object
get(byte[] key)
java.lang.Object
get(int key)
java.lang.Object
get(long key)
java.lang.Object
get(java.lang.Object key)
Iterator4
iterator()
Iterates through all theentries
.void
put(byte[] key, java.lang.Object value)
void
put(int key, java.lang.Object value)
void
put(long key, java.lang.Object value)
void
put(java.lang.Object key, java.lang.Object value)
java.lang.Object
remove(byte[] key)
java.lang.Object
remove(int key)
java.lang.Object
remove(long longKey)
java.lang.Object
remove(java.lang.Object objectKey)
-
Methods inherited from class com.db4o.foundation.HashtableBase
clear, entryIndex, findWithSameKey, hashtableIterator, keys, putEntry, removeEntry, removeIntEntry, removeLongEntry, removeObjectEntry, size, toString, values, valuesIterator
-
-
-
-
Constructor Detail
-
Hashtable4
public Hashtable4(int size)
-
Hashtable4
public Hashtable4()
-
Hashtable4
protected Hashtable4(DeepClone cloneOnlyCtor)
- Parameters:
cloneOnlyCtor
-
-
-
Method Detail
-
deepClone
public java.lang.Object deepClone(java.lang.Object obj)
Description copied from interface:DeepClone
The parameter allows passing one new object so parent references can be corrected on children.
-
forEachKeyForIdentity
public void forEachKeyForIdentity(Visitor4 visitor, java.lang.Object obj)
-
get
public java.lang.Object get(byte[] key)
-
get
public java.lang.Object get(int key)
-
get
public java.lang.Object get(long key)
-
containsKey
public boolean containsKey(java.lang.Object key)
- Specified by:
containsKey
in interfaceMap4
-
containsAllKeys
public boolean containsAllKeys(Iterable4 collection)
-
containsAllKeys
public boolean containsAllKeys(Iterator4 iterator)
-
put
public void put(byte[] key, java.lang.Object value)
-
put
public void put(int key, java.lang.Object value)
-
put
public void put(long key, java.lang.Object value)
-
put
public void put(java.lang.Object key, java.lang.Object value)
-
remove
public java.lang.Object remove(java.lang.Object objectKey)
-
remove
public java.lang.Object remove(long longKey)
-
remove
public java.lang.Object remove(byte[] key)
-
remove
public java.lang.Object remove(int key)
-
iterator
public Iterator4 iterator()
Iterates through all theentries
.- Returns:
Entry4
iterator- See Also:
HashtableBase.values()
,#see
-
deepCloneInternal
protected Hashtable4 deepCloneInternal(Hashtable4 ret, java.lang.Object obj)
-
-