敏捷工具
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
382 B

2 years ago
  1. package com.whn.hellospring.utils
  2. /**
  3. * 功能描述:
  4. * 创建作者:尉浩楠
  5. * 创建时间:2018/10/9.
  6. */
  7. /**
  8. * 判断字符串不为空
  9. */
  10. fun isNotNull(num: String?): Boolean {
  11. return num != null && "" != num
  12. }
  13. /**
  14. * 判断字符串不为空
  15. */
  16. fun isNotNullAndZero(num: String?): Boolean {
  17. return StringUtil.isNumber(num) && num?.toDouble() != 0.0
  18. }