摘要: public class StringUtils { /** * 如果str为null,返回“”,否则返回str * @param str * @return */ public static String isNull(String str) { if (str == null) { return... 阅读全文
posted @ 2018-08-22 17:52 龙芳伟 阅读(2829) 评论(0) 推荐(0) 编辑
摘要: public class BigDecimalUtil { private static int DEF_DIV_SCALE = 10; // 默认精确的小数位 /** * 提供精确的加法运算。 * * @param v1 被加数 * @param v2 加数 * @return 两个参数的和 */ pub... 阅读全文
posted @ 2018-08-22 17:28 龙芳伟 阅读(369) 评论(0) 推荐(0) 编辑