public class LinearProbingHST<K,V> extends HST
需保证使用率在1/8到1/2之间
| 限定符和类型 | 字段和说明 |
|---|---|
protected K[] |
keys |
protected V[] |
vales |
capacity, DEFAULT_CAPACITY, size| 限定符 | 构造器和说明 |
|---|---|
protected |
LinearProbingHST(int capacity) |
public static <K,V> LinearProbingHST<K,V> of(int capacity)
public static <K,V> LinearProbingHST<K,V> of()
protected final int hash(K key)
public final boolean containsKey(K key)
public final void delete(K key)
Copyright © 2022. All rights reserved.