List of utility methods to do Number to Long
Long | NumberToLong(final Number value) Number To Long return value == null ? null : value.longValue();
|
Long | numberToLong(Number n) number To Long if (n != null && !(n instanceof Float)) { if (n instanceof Integer) return ((Integer) n).longValue(); else if (n instanceof Short) return ((Short) n).longValue(); else if (n instanceof Long) return ((Long) n).longValue(); return null; |