public class IntHashTable extends Object
| Modifier and Type | Field and Description |
|---|---|
static IntHashTable |
EMPTY |
| Constructor and Description |
|---|
IntHashTable(int bits) |
| Modifier and Type | Method and Description |
|---|---|
static void |
clear(IntHashTable ht) |
static int |
computeBits(int count) |
static int |
count(IntHashTable ht) |
static IntHashTable |
doubleSize(IntHashTable ht) |
static int |
getItem(IntHashTable ht,
int key)
returns zero if the value is not found otherwise it returns the value.
|
static boolean |
hasItem(IntHashTable ht,
int key) |
static boolean |
isEmpty(IntHashTable ht) |
long |
memoryConsumed() |
static IntHashTable |
newTableExpectingCount(int count) |
static boolean |
replaceItem(IntHashTable ht,
int key,
int newValue) |
static boolean |
setItem(IntHashTable ht,
int key,
int value) |
static int |
size(IntHashTable ht) |
static void |
visit(IntHashTable ht,
IntHashTableVisitor visitor) |
public static IntHashTable EMPTY
public static IntHashTable newTableExpectingCount(int count)
public static int computeBits(int count)
public static void clear(IntHashTable ht)
public static int size(IntHashTable ht)
public static int count(IntHashTable ht)
public static boolean isEmpty(IntHashTable ht)
public long memoryConsumed()
public static boolean setItem(IntHashTable ht, int key, int value)
public static int getItem(IntHashTable ht, int key)
ht - key - public static boolean hasItem(IntHashTable ht, int key)
public static boolean replaceItem(IntHashTable ht, int key, int newValue)
public static void visit(IntHashTable ht, IntHashTableVisitor visitor)
public static IntHashTable doubleSize(IntHashTable ht)
Copyright © 2018. All Rights Reserved.