public static boolean isValidIfNumber(Object obj) {
		if (obj != null && obj instanceof Number) {
			if (obj instanceof Double) {
				if (((Double) obj).isInfinite() || ((Double) obj).isNaN()) {
					return false;
				}
			} else if (obj instanceof Float) {
				if (((Float) obj).isInfinite() || ((Float) obj).isNaN()) {
					return false;
				}
			}
		}
		return true;
	}
public static boolean isValidIfNumber ( Object obj ) { if ( obj != null && obj instanceof Number ) { if ( obj instanceof Double ) { if ( ( ( Double ) obj ) . isInfinite ( ) || ( ( Double ) obj ) . isNaN ( ) ) { return false ; } } else if ( obj instanceof Float ) { if ( ( ( Float ) obj ) . isInfinite ( ) || ( ( Float ) obj ) . isNaN ( ) ) { return false ; } } } return true ; }
检查是否为有效的数字<br>
检查Double和Float是否为无限大，或者Not a Number<br>
非数字类型和Null将返回true

@param obj 被检查类型
@return 检查结果，非数字类型和Null将返回true