Compare commits
9 Commits
dev
...
6fdb02f3c1
| Author | SHA1 | Date | |
|---|---|---|---|
| 6fdb02f3c1 | |||
| 5770a41893 | |||
| a919cf0a52 | |||
| 5612d6a24a | |||
| db530c1fed | |||
| 1fe9cf7b77 | |||
| 0d21b154ca | |||
| acba4c11d9 | |||
| d21fba0fc1 |
6
pom.xml
6
pom.xml
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<groupId>com.imyeyu.java</groupId>
|
<groupId>com.imyeyu.java</groupId>
|
||||||
<artifactId>timi-java</artifactId>
|
<artifactId>timi-java</artifactId>
|
||||||
<version>0.0.5</version>
|
<version>0.0.4</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
@@ -50,7 +50,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.projectlombok</groupId>
|
<groupId>org.projectlombok</groupId>
|
||||||
<artifactId>lombok</artifactId>
|
<artifactId>lombok</artifactId>
|
||||||
<version>1.18.46</version>
|
<version>1.18.36</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</plugin>
|
</plugin>
|
||||||
@@ -92,7 +92,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.projectlombok</groupId>
|
<groupId>org.projectlombok</groupId>
|
||||||
<artifactId>lombok</artifactId>
|
<artifactId>lombok</artifactId>
|
||||||
<version>1.18.46</version>
|
<version>1.18.40</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.junit.jupiter</groupId>
|
<groupId>org.junit.jupiter</groupId>
|
||||||
|
|||||||
@@ -72,30 +72,6 @@ public interface TimiJava {
|
|||||||
return !isEmpty(object);
|
return !isEmpty(object);
|
||||||
}
|
}
|
||||||
|
|
||||||
static boolean hasEmpty(Object... objects) {
|
|
||||||
for (Object object : objects) {
|
|
||||||
if (isEmpty(object)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
static boolean allNotEmpty(Object... objects) {
|
|
||||||
for (Object object : objects) {
|
|
||||||
if (isEmpty(object)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
static <T> T nullIfEmpty(T object) {
|
|
||||||
if (isEmpty(object)) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return object;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 为空时取默认值
|
* 为空时取默认值
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user