package towTimesMethods; import java.math.BigDecimal; public class MakeTowTimes { private static BigDecimal ConstTow = new BigDecimal("2.0"); public static long Makelong(long num) { return num * 2; } public static double Makedouble(double num) { return num * 2; } public static Long MakeLong(Long num) { if (num == null) return 0L; return num * 2; } public static Double MakeDouble(Double num) { if (num == null) return 0D; return num * 2; } public static BigDecimal MakeBigDecimal(BigDecimal num) { if (num == null) return BigDecimal.ZERO; return num.multiply(ConstTow); } public static String MakeString(String str) { if (str == null) return ""; return str + str; } }