@Authors(value="Nikolche Mihajlovski") @Since(value="2.0.0") public class SimpleHashTable<T> extends org.rapidoid.RapidoidThing
| Modifier and Type | Field and Description |
|---|---|
SimpleBucket<T>[] |
buckets |
int |
factor |
| Constructor and Description |
|---|
SimpleHashTable(int capacity,
int bucketSize) |
SimpleHashTable(int capacity,
int bucketSize,
boolean unbounded) |
| Modifier and Type | Method and Description |
|---|---|
SimpleBucket<T> |
bucket(long key) |
int |
bucketCount() |
int |
bucketSize() |
int |
capacity() |
void |
clear() |
protected void |
clearBucket(int index) |
protected SimpleBucket<T> |
createBucket(int bucketSize,
boolean unbounded) |
SimpleBucket<T> |
getBucketAt(int index) |
int |
index(long key) |
void |
put(long key,
T value) |
public final SimpleBucket<T>[] buckets
public final int factor
public SimpleHashTable(int capacity,
int bucketSize)
public SimpleHashTable(int capacity,
int bucketSize,
boolean unbounded)
public int bucketSize()
public int capacity()
protected SimpleBucket<T> createBucket(int bucketSize, boolean unbounded)
public void put(long key,
T value)
public SimpleBucket<T> bucket(long key)
public SimpleBucket<T> getBucketAt(int index)
public int index(long key)
public void clear()
protected void clearBucket(int index)
public int bucketCount()
Copyright © 2014–2018 Nikolche Mihajlovski and contributors. All rights reserved.