public class LongTable
extends java.lang.Object
Constructor and Description |
---|
LongTable()
Constructor with default initial capacity and default load factor.
|
LongTable(int initialCapacity)
Constructor with explicit initial capacity, default load factor.
|
LongTable(int initialCapacity,
float loadFactor)
Constructor with explicit initial capacity and load factor.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear the entire table.
|
boolean |
contains(net.handle.jdb.Block value)
Return true if table contains given block, otherwise false.
|
boolean |
containsKey(long key)
Return true if given key is in table, otherwise false.
|
net.handle.jdb.Block |
get(long key)
Fetch the block value for the given key.
|
boolean |
isEmpty()
Return true if table is empty, otherwise false.
|
LongTableEnumerator |
keys()
Return an enumerator object for the table.
|
void |
put(long key,
net.handle.jdb.Block value)
Enter the given value into the table by the given key.
|
protected void |
rehash()
Rehash the table.
|
void |
remove(long key)
Remove the block for the given key from the table.
|
int |
size()
Return number of elements in table.
|
public LongTable(int initialCapacity, float loadFactor)
public LongTable(int initialCapacity)
public LongTable()
public int size()
public boolean isEmpty()
public LongTableEnumerator keys()
public boolean contains(net.handle.jdb.Block value)
public boolean containsKey(long key)
public net.handle.jdb.Block get(long key)
protected void rehash()
public void put(long key, net.handle.jdb.Block value)
public void remove(long key)
public void clear()