2019.4.21
public Set
<V> getAll(K key
){
Set
<V> ret
= new HashSet<>();
int startIndex
= hash(key
.hashCode());
while(table
[startIndex
] != null
){
ret
.add(table
[startIndex
].getValue());
startIndex
= (startIndex
+ 1) % capacity
;
}
return ret
;
}
转载请注明原文地址:https://ipadbbs.8miu.com/read-3430.html