@API(type=NOT_EXTENDABLE,
src=PRIVATE)
public class SmallAndFastHashtable
extends java.lang.Object
implements java.lang.Cloneable
Modifier and Type | Class and Description |
---|---|
static interface |
SmallAndFastHashtable.SmallIterator
Iterator over this hash map.
|
Constructor and Description |
---|
SmallAndFastHashtable()
Default constructor.
|
SmallAndFastHashtable(int initialSize)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Shallow clone this hash table to an identical one.
|
boolean |
containsKey(java.lang.String key)
See if a key exists.
|
java.lang.Object |
get(java.lang.String key)
Get data for a key.
|
java.lang.String |
getKey(int index)
Get key at index.
|
int |
getLength() |
SmallAndFastHashtable.SmallIterator |
iterator() |
void |
put(java.lang.String key,
java.lang.Object data)
Puts some information in the hashtable.
|
void |
putAll(SmallAndFastHashtable smallAFHashToAdd)
All all entries form smallAFHashToAdd to the current one
|
void |
remove(java.lang.String key)
Remove data for a key.
|
java.lang.String |
toString() |
public SmallAndFastHashtable()
public SmallAndFastHashtable(int initialSize)
initialSize
- The initial size.public final void put(java.lang.String key, java.lang.Object data)
key
- The key in the table. Null is not allowed.data
- The data to be stored.public final java.lang.Object get(java.lang.String key)
key
- The key to be searched. Null not allowed.public final java.lang.String getKey(int index)
index
- The key index.public final boolean containsKey(java.lang.String key)
key
- The key to be searched. Null not allowed.public final void remove(java.lang.String key)
key
- The key to be searched. Null not allowed.public SmallAndFastHashtable.SmallIterator iterator()
public java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int getLength()
public final void putAll(SmallAndFastHashtable smallAFHashToAdd)
smallAFHashToAdd
- entries to be added© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.