MCPcopy Create free account
hub / github.com/HtmlUnit/htmlunit / key

Method key

src/main/java/org/htmlunit/javascript/host/Storage.java:137–149  ·  view source on GitHub ↗

Returns the key of the specified index. @param index the index @return the key

(final int index)

Source from the content-addressed store, hash-verified

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.

Callers 15

doneFunction · 0.80
doneFunction · 0.80
qunit.jsFile · 0.80
qunit.jsFile · 0.80
Signal.jsFile · 0.80
DragAndDrop.jsFile · 0.80
eventTestFunction · 0.80
Signal.jsFile · 0.80
DragAndDrop.jsFile · 0.80
eventTestFunction · 0.80
ext-all-debug.jsFile · 0.80
ext-all.jsFile · 0.80

Calls 1

keySetMethod · 0.45

Tested by

no test coverage detected