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

Method InOp

java/lib/src/main/java/io/github/ccxt/Helpers.java:768–780  ·  view source on GitHub ↗
(Object obj, Object key)

Source from the content-addressed store, hash-verified

766 public static boolean inOp(Object obj, Object key) { return InOp(obj, key); }
767
768 public static boolean InOp(Object obj, Object key) {
769 if (obj == null || key == null) return false;
770
771 if (obj instanceof List<?>) {
772 return ((List<?>) obj).contains(key);
773 } else if (obj instanceof Map<?, ?>) {
774 if (key instanceof String) {
775 return ((Map<?, ?>) obj).containsKey(key);
776 } else return false;
777 } else {
778 return false;
779 }
780 }
781
782 public static String slice(Object str2, Object idx1, Object idx2) { return Slice(str2, idx1, idx2); }
783

Callers 15

inOpMethod · 0.95
benchmarksFunction · 0.80
HelperTestInitThrottlerFunction · 0.80
HelperTestSandboxStateFunction · 0.80
InOpFunction · 0.80
TestExtendFunction · 0.80
TbfeCheckExtendedFunction · 0.80
TestCloneFunction · 0.80
HandleOrderBookMethod · 0.80

Calls

no outgoing calls

Tested by 2

TestExtendFunction · 0.64
TestCloneFunction · 0.64