本文共 318 字,大约阅读时间需要 1 分钟。
public SetgetAll(K key){ Set ret = new HashSet<>(); int startIndex = hash(key.hashCode()); while(table[startIndex] != null){ ret.add(table[startIndex].getValue()); startIndex = (startIndex + 1) % capacity; } return ret; }
转载地址:http://vpzai.baihongyu.com/