(Number x)
| 1152 | } |
| 1153 | |
| 1154 | @WarnBoxedMath(false) |
| 1155 | static int hasheq(Number x){ |
| 1156 | Class xc = x.getClass(); |
| 1157 | |
| 1158 | if(xc == Long.class) |
| 1159 | { |
| 1160 | long lpart = x.longValue(); |
| 1161 | return Murmur3.hashLong(lpart); |
| 1162 | //return (int) (lpart ^ (lpart >>> 32)); |
| 1163 | } |
| 1164 | if(xc == Double.class) |
| 1165 | { |
| 1166 | if(x.equals(-0.0)) |
| 1167 | return 0; // match 0.0 |
| 1168 | return x.hashCode(); |
| 1169 | } |
| 1170 | return hasheqFrom(x, xc); |
| 1171 | } |
| 1172 | |
| 1173 | static Category category(Object x){ |
| 1174 | Class xc = x.getClass(); |