MCPcopy Create free account
hub / github.com/doubledutch/LazyJSON / getInt

Method getInt

src/main/java/me/doubledutch/lazyjson/LazyArray.java:588–591  ·  view source on GitHub ↗

Returns the int value stored at the given index. @param index the location of the value in this array @return the value if it could be parsed as an int @throws LazyException if the index is out of bounds

(int index)

Source from the content-addressed store, hash-verified

586 * @throws LazyException if the index is out of bounds
587 */
588 public int getInt(int index) throws LazyException{
589 LazyNode token=getValueToken(index);
590 return token.getIntValue();
591 }
592
593 /**
594 * Returns the int value stored at the given index or 0 if there was no such value.

Callers 15

buildArrayTestMethod · 0.95
insertArrayTestMethod · 0.95
testRemoveMethod · 0.95
testOutOfBoundMethod · 0.95
testOutOfBoundUnderMethod · 0.95
testBooleanValuesMethod · 0.95
testIntValuesMethod · 0.95
testInnerArrayValuesMethod · 0.95
testArrayValuesMethod · 0.95
cleanArrayToObjectMethod · 0.45
cleanArrayToArrayMethod · 0.45
cleanObjectToArrayMethod · 0.45

Calls 2

getValueTokenMethod · 0.95
getIntValueMethod · 0.95

Tested by 15

buildArrayTestMethod · 0.76
insertArrayTestMethod · 0.76
testRemoveMethod · 0.76
testOutOfBoundMethod · 0.76
testOutOfBoundUnderMethod · 0.76
testBooleanValuesMethod · 0.76
testIntValuesMethod · 0.76
testInnerArrayValuesMethod · 0.76
testArrayValuesMethod · 0.76
cleanArrayToObjectMethod · 0.36
cleanArrayToArrayMethod · 0.36
cleanObjectToArrayMethod · 0.36