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

Method isInstance

java/lib/src/main/java/io/github/ccxt/Helpers.java:1234–1241  ·  view source on GitHub ↗
(Object value, Object type)

Source from the content-addressed store, hash-verified

1232 }
1233
1234 public static boolean isInstance(Object value, Object type) {
1235 if (!(type instanceof Class<?> clazz)) {
1236 return false;
1237 }
1238
1239 Object target = unwrapIfThrowable(value);
1240 return clazz.isInstance(target);
1241 }
1242
1243 private static Object unwrapIfThrowable(Object value) {
1244 if (!(value instanceof Throwable t)) {

Callers 15

fetch2Method · 0.95
safeDeterministicCallMethod · 0.95
isUnifiedEnabledMethod · 0.95
safeDeterministicCallMethod · 0.95
fetchOrderMethod · 0.95
setMarginModeMethod · 0.95
fetchOpenOrdersMethod · 0.95
handleErrorMessageMethod · 0.95
handleErrorMessageMethod · 0.95
handleErrorMessageMethod · 0.95
handleErrorMessageMethod · 0.95
handleErrorMessageMethod · 0.95

Calls 1

unwrapIfThrowableMethod · 0.95

Tested by 8

isTemporaryFailureMethod · 0.76
testSafeMethod · 0.76
testRequestStaticallyMethod · 0.76
testWatchLiquidationsMethod · 0.76