(Object a)
| 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) { |