MCPcopy
hub / github.com/ccxt/ccxt / isEmpty

Method isEmpty

java/lib/src/main/java/io/github/ccxt/Exchange.java:2376–2390  ·  view source on GitHub ↗
(Object a)

Source from the content-addressed store, hash-verified

2374 }
2375
2376 public boolean isEmpty(Object a) {
2377 if (a == null) {
2378 return true;
2379 }
2380 if (a instanceof String) {
2381 return ((String) a).isEmpty();
2382 }
2383 if (a instanceof java.util.List) {
2384 return ((java.util.List<?>) a).isEmpty();
2385 }
2386 if (a instanceof java.util.Map) {
2387 return ((java.util.Map<?, ?>) a).isEmpty();
2388 }
2389 return false;
2390 }
2391
2392 public static void setProperty(Object obj, Object property, Object defaultValue) {
2393 if (obj == null || property == null) {

Callers 15

testIsEmptyFunction · 0.95
testIsEmptyFunction · 0.95
signMethod · 0.80
fetchMarketsMethod · 0.80
fetchPositionsMethod · 0.80
signMethod · 0.80
createOrderMethod · 0.80
parseCurrencyMethod · 0.80
fetchPositionsMethod · 0.80
editOrderRequestMethod · 0.80
watchPositionsMethod · 0.80

Calls

no outgoing calls

Tested by 15

mainMethod · 0.64
createDelayedExchangeMethod · 0.64
closeClearsAllClientsMethod · 0.64
mainMethod · 0.64
setupMethod · 0.64