(k K)
| 70 | } |
| 71 | |
| 72 | func (this *IntMap[K, V]) Get(k K) (value V) { |
| 73 | var index = this.index(k) |
| 74 | this.lockers[index].RLock() |
| 75 | value = this.m[index][k] |
| 76 | this.lockers[index].RUnlock() |
| 77 | return |
| 78 | } |
| 79 | |
| 80 | func (this *IntMap[K, V]) GetOk(k K) (value V, ok bool) { |
| 81 | var index = this.index(k) |