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

Method plusEqual

java/lib/src/main/java/io/github/ccxt/Helpers.java:178–194  ·  view source on GitHub ↗
(Object a, Object value)

Source from the content-addressed store, hash-verified

176 }
177
178 public static Object plusEqual(Object a, Object value) {
179 a = normalizeIntIfNeeded(a);
180 value = normalizeIntIfNeeded(value);
181
182 if (value == null) return null;
183 if (a instanceof Long && value instanceof Long) {
184 return (Long) a + (Long) value;
185 } else if (a instanceof Integer && value instanceof Integer) {
186 return (Integer) a + (Integer) value;
187 } else if (a instanceof Double && value instanceof Double) {
188 return (Double) a + (Double) value;
189 } else if (a instanceof String && value instanceof String) {
190 return ((String) a) + ((String) value);
191 } else {
192 return null;
193 }
194 }
195
196 // In Java, wire up your preferred JSON lib and return Map/List accordingly.
197 public static Object parseJson(Object json) {

Callers

nothing calls this directly

Calls 1

normalizeIntIfNeededMethod · 0.95

Tested by

no test coverage detected