MCPcopy Index your code
hub / github.com/ccxt/ccxt / toInt

Method toInt

java/lib/src/main/java/io/github/ccxt/Exchange.java:1331–1339  ·  view source on GitHub ↗
(Object value)

Source from the content-addressed store, hash-verified

1329 }
1330
1331 private static int toInt(Object value) {
1332 if (value == null) {
1333 throw new IllegalArgumentException("Index argument cannot be null");
1334 }
1335 if (value instanceof Number) {
1336 return ((Number) value).intValue();
1337 }
1338 return Integer.parseInt(value.toString());
1339 }
1340 // overload matching the C# default parameter (second = null)
1341 public Object arraySlice(Object array, Object first) {
1342 return arraySlice(array, first, null);

Callers 1

arraySliceMethod · 0.95

Calls 2

parseIntMethod · 0.80
toStringMethod · 0.45

Tested by

no test coverage detected