Returns the key of the specified index. @param index the index @return the key
(final int index)
| 135 | * @return the key |
| 136 | */ |
| 137 | @JsxFunction |
| 138 | public String key(final int index) { |
| 139 | if (index >= 0) { |
| 140 | int counter = 0; |
| 141 | for (final String key : store_.keySet()) { |
| 142 | if (counter == index) { |
| 143 | return key; |
| 144 | } |
| 145 | counter++; |
| 146 | } |
| 147 | } |
| 148 | return null; |
| 149 | } |
| 150 | |
| 151 | /** |
| 152 | * Returns the value of the specified key. |
no test coverage detected