MCPcopy
hub / github.com/google/gson / getAsBigInteger

Method getAsBigInteger

gson/src/main/java/com/google/gson/JsonArray.java:305–308  ·  view source on GitHub ↗

Convenience method to get this array as a {@link BigInteger} if it contains a single element. This method calls {@link JsonElement#getAsBigInteger()} on the element, therefore any of the exceptions declared by that method can occur. @return this element as a {@link BigInteger} if it is single eleme

()

Source from the content-addressed store, hash-verified

303 * @since 1.2
304 */
305 @Override
306 public BigInteger getAsBigInteger() {
307 return getAsSingleElement().getAsBigInteger();
308 }
309
310 /**
311 * Convenience method to get this array as a float if it contains a single element. This method

Callers 1

testJsonPrimitiveMethod · 0.45

Calls 1

getAsSingleElementMethod · 0.95

Tested by 1

testJsonPrimitiveMethod · 0.36