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

Method getArrayLength

java/lib/src/main/java/io/github/ccxt/Helpers.java:447–459  ·  view source on GitHub ↗
(Object value)

Source from the content-addressed store, hash-verified

445 }
446
447 public static int getArrayLength(Object value) {
448 if (value == null) return 0;
449
450 if (value instanceof List<?>) {
451 return ((List<?>) value).size();
452 } else if (value instanceof String) {
453 return ((String) value).length(); // fallback
454 } else if (value.getClass().isArray()) {
455 return java.lang.reflect.Array.getLength(value);
456 } else {
457 return 0;
458 }
459 }
460
461 public static boolean IsInteger(Object value) {
462 if (value == null) return false;

Callers 15

handleDeltasMethod · 0.95
handleDeltasWithKeysMethod · 0.95
arraysConcatMethod · 0.95
findTimeframeMethod · 0.95
checkProxyUrlSettingsMethod · 0.95
checkProxySettingsMethod · 0.95
checkWsProxySettingsMethod · 0.95
checkAddressMethod · 0.95
findMessageHashesMethod · 0.95
filterByLimitMethod · 0.95
filterBySinceLimitMethod · 0.95

Calls 2

lengthMethod · 0.45
isArrayMethod · 0.45

Tested by 15

getArrayLengthMethod · 0.76
testFetchWithdrawalsMethod · 0.76
testFetchOrderBooksMethod · 0.76
testLoadMarketsMethod · 0.76
testFetchLedgerMethod · 0.76
testFetchOHLCVMethod · 0.76
testCurrencyMethod · 0.76
testFetchLedgerEntryMethod · 0.76
testTradeMethod · 0.76
testMarketMethod · 0.76