/** * INTERNAL * Helper method to calculate the return type of the SUM operation. */ protected Object calculateReturnType(Object argType, TypeHelper helper) { Object returnType = null; if (helper.isIntegralType(argType)) { returnType = helper.getLongClassType(); } else if (helper.isFloatingPointType(argType)) { returnType = helper.getDoubleClassType(); } else if (helper.isBigIntegerType(argType)) { returnType = helper.getBigIntegerType(); } else if (helper.isBigDecimalType(argType)) { returnType = helper.getBigDecimalType(); } return returnType; }
/** * INTERNAL * Helper method to calculate the return type of the SUM operation. */ protected Object calculateReturnType(Object argType, TypeHelper helper) { Object returnType = null; if (helper.isIntegralType(argType)) { returnType = helper.getLongClassType(); } else if (helper.isFloatingPointType(argType)) { returnType = helper.getDoubleClassType(); } else if (helper.isBigIntegerType(argType)) { returnType = helper.getBigIntegerType(); } else if (helper.isBigDecimalType(argType)) { returnType = helper.getBigDecimalType(); } return returnType; }
/** * INTERNAL * Helper method to calculate the return type of the SUM operation. */ protected Object calculateReturnType(Object argType, TypeHelper helper) { Object returnType = null; if (helper.isIntegralType(argType)) { returnType = helper.getLongClassType(); } else if (helper.isFloatingPointType(argType)) { returnType = helper.getDoubleClassType(); } else if (helper.isBigIntegerType(argType)) { returnType = helper.getBigIntegerType(); } else if (helper.isBigDecimalType(argType)) { returnType = helper.getBigDecimalType(); } return returnType; }