MCPcopy Create free account
hub / github.com/mozilla/rhino / size

Method size

rhino/src/main/java/org/mozilla/javascript/NativeArray.java:2260–2268  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2258 }
2259
2260 @Override
2261 public int size() {
2262 long longLen = length;
2263 if (longLen > Integer.MAX_VALUE) {
2264 throw new IllegalStateException(
2265 "list.length (" + length + ") exceeds Integer.MAX_VALUE");
2266 }
2267 return (int) longLen;
2268 }
2269
2270 @Override
2271 public boolean isEmpty() {

Callers 15

bigListMethod · 0.95
mapMethod · 0.95
listMethod · 0.95
setMethod · 0.95
toArrayMethod · 0.95
indexOfMethod · 0.95
lastIndexOfMethod · 0.95
listIteratorMethod · 0.95
subListMethod · 0.95
js_constructorMethod · 0.95
keysMethod · 0.95
keysMethod · 0.95

Calls 1

checkModCountMethod · 0.95

Tested by 9

bigListMethod · 0.76
mapMethod · 0.76
listMethod · 0.76
setMethod · 0.76
keysMethod · 0.76
keysMethod · 0.76
symbolIteratorMethod · 0.76
splitLimitZeroMethod · 0.76
splitLimitNegativeMethod · 0.76