| 1096 | static public enum Category {INTEGER, FLOATING, DECIMAL, RATIO}; |
| 1097 | |
| 1098 | static Ops ops(Object x){ |
| 1099 | Class xc = x.getClass(); |
| 1100 | |
| 1101 | if(xc == Long.class) |
| 1102 | return LONG_OPS; |
| 1103 | else if(xc == Double.class) |
| 1104 | return DOUBLE_OPS; |
| 1105 | else if(xc == Integer.class) |
| 1106 | return LONG_OPS; |
| 1107 | else if(xc == Float.class) |
| 1108 | return DOUBLE_OPS; |
| 1109 | else if(xc == BigInt.class) |
| 1110 | return BIGINT_OPS; |
| 1111 | else if(xc == BigInteger.class) |
| 1112 | return BIGINT_OPS; |
| 1113 | else if(xc == Ratio.class) |
| 1114 | return RATIO_OPS; |
| 1115 | else if(xc == BigDecimal.class) |
| 1116 | return BIGDECIMAL_OPS; |
| 1117 | else |
| 1118 | return LONG_OPS; |
| 1119 | } |
| 1120 | |
| 1121 | @WarnBoxedMath(false) |
| 1122 | static int hasheqFrom(Number x, Class xc){ |