Java Utililty Methods Number to Long

List of utility methods to do Number to Long

Description

The list of methods to do Number to Long are organized into topic(s).

Method

LongNumberToLong(final Number value)
Number To Long
return value == null ? null : value.longValue();
LongnumberToLong(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;