mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-08 01:28:24 +08:00
style: 工具类添加私有构造器。
This commit is contained in:
parent
5b2ab0ea69
commit
af85476c82
@ -1,4 +1,4 @@
|
||||
/**
|
||||
/*
|
||||
* Copyright (c) 2022-2023, Mybatis-Flex (fuhai999@gmail.com).
|
||||
* <p>
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@ -24,6 +24,8 @@ import java.util.Map;
|
||||
|
||||
public class If {
|
||||
|
||||
private If() {
|
||||
}
|
||||
|
||||
/**
|
||||
* 判断对象是否为空
|
||||
@ -41,6 +43,7 @@ public class If {
|
||||
|
||||
/**
|
||||
* 查看某个对象是否为空,支持数组、集合、map 等
|
||||
*
|
||||
* @param object
|
||||
*/
|
||||
public static boolean notEmpty(Object object) {
|
||||
@ -69,6 +72,7 @@ public class If {
|
||||
|
||||
/**
|
||||
* 查看某个对象是否为空数据 或者 null
|
||||
*
|
||||
* @param object
|
||||
*/
|
||||
public static boolean isEmpty(Object object) {
|
||||
@ -78,6 +82,7 @@ public class If {
|
||||
|
||||
/**
|
||||
* 查看某个 string 对象是否有文本内容
|
||||
*
|
||||
* @param object
|
||||
*/
|
||||
public static boolean hasText(Object object) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user