Compare commits
12
Commits
8c7f5d6148
..
v0.0.7
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7a1878c0aa | ||
|
|
11f04b4dba | ||
|
|
27bbfc60d5 | ||
|
|
6fdb02f3c1 | ||
|
|
5770a41893 | ||
|
|
a919cf0a52 | ||
|
|
5612d6a24a | ||
|
|
db530c1fed | ||
|
|
1fe9cf7b77 | ||
|
|
0d21b154ca | ||
|
|
acba4c11d9 | ||
|
|
d21fba0fc1 |
@@ -6,7 +6,7 @@
|
||||
|
||||
<groupId>com.imyeyu.java</groupId>
|
||||
<artifactId>timi-java</artifactId>
|
||||
<version>0.0.11</version>
|
||||
<version>0.0.7</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<properties>
|
||||
|
||||
@@ -2,12 +2,9 @@ package com.imyeyu.java;
|
||||
|
||||
import java.io.PrintWriter;
|
||||
import java.io.StringWriter;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* 通用工具
|
||||
@@ -191,9 +188,4 @@ public interface TimiJava {
|
||||
static <T> Iterable<T> safeIterable(Iterable<T> iterable) {
|
||||
return defaultIfNull(iterable, Collections::emptyIterator);
|
||||
}
|
||||
|
||||
@SafeVarargs
|
||||
static <T> List<T> ofList(T... objs) {
|
||||
return objs == null ? List.of() : Arrays.stream(objs).filter(Objects::nonNull).toList();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user