MCPcopy
hub / github.com/ccxt/ccxt / normalizeIntIfNeeded

Method normalizeIntIfNeeded

java/lib/src/main/java/io/github/ccxt/Helpers.java:107–113  ·  view source on GitHub ↗
(Object a)

Source from the content-addressed store, hash-verified

105
106 // tmp most of these methods are going to be re-implemented in the future to be more generic and efficient
107 public static Object normalizeIntIfNeeded(Object a) {
108 if (a == null) return null;
109 if (a instanceof Integer) {
110 return Long.valueOf(((Integer) a).longValue());
111 }
112 return a;
113 }
114
115 // C# had "ref object a" + returns new value; in Java we mimic with AtomicReference<Object>
116 public static Object postFixIncrement(AtomicReference<Object> a) {

Callers 8

plusEqualMethod · 0.95
isTrueMethod · 0.95
isGreaterThanMethod · 0.95
modMethod · 0.95
addMethod · 0.95
subtractMethod · 0.95
divideMethod · 0.95
multiplyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected