Returns the index of the specified key. @param key key to be looked up @return index, or 0 if key does not exist
(final QNm key)
| 62 | * @return index, or {@code 0} if key does not exist |
| 63 | */ |
| 64 | public final int index(final QNm key) { |
| 65 | final int b = key.hashCode() & capacity() - 1; |
| 66 | for(int i = buckets[b]; i != 0; i = next[i]) { |
| 67 | if(key.eq(keys[i])) return i; |
| 68 | } |
| 69 | return 0; |
| 70 | } |
| 71 | |
| 72 | /** |
| 73 | * Stores the specified key and returns its index, |