Closed-bucket hash tables (4)
Java class implementing CBHTs:
private BucketNode[] buckets;
public CBHT (int m) { buckets = new BucketNode[m]; }
… // CBHT methods (see below)
private int hash (Object key) { return Math.abs(key.hashCode()) % buckets.length; }