MCPcopy
hub / github.com/ccxt/ccxt / opNeg

Method opNeg

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

Source from the content-addressed store, hash-verified

1049 }
1050
1051 public static Object opNeg(Object value) {
1052 if (value == null) {
1053 return null;
1054 }
1055
1056 if (value instanceof Byte) {
1057 byte v = (Byte) value;
1058 return (byte) -v;
1059 }
1060 if (value instanceof Short v) {
1061 return (short) -v;
1062 }
1063 if (value instanceof Integer v) {
1064 return -v;
1065 }
1066 if (value instanceof Long v) {
1067 return -v;
1068 }
1069 if (value instanceof Float v) {
1070 return -v;
1071 }
1072 if (value instanceof Double v) {
1073 return -v;
1074 }
1075
1076 return null;
1077 }
1078
1079 public static void throwDynamicException(Object exception, Object message) {
1080 if (exception == null) {

Callers 15

getCacheIndexMethod · 0.95
checkAddressMethod · 0.95
filterByLimitMethod · 0.95
filterBySinceLimitMethod · 0.95
initRestRateLimiterMethod · 0.95
buildOHLCVCMethod · 0.95
parsePrecisionMethod · 0.95
fetchMarketsMethod · 0.95
signMessageMethod · 0.95
signHashMethod · 0.95
encodeValuesWithJsonMethod · 0.95

Calls

no outgoing calls

Tested by 6

removeHostnamefromUrlMethod · 0.76
testPreciseMethod · 0.76
testNumberToStringMethod · 0.76
testDatetimeMethod · 0.76
testCryptographyMethod · 0.76