Remove 3-arg Lang.merge()
This commit is contained in:
@@ -216,8 +216,8 @@ public final class Lang {
|
||||
return convert(map.get(key), clazz, defaultValue);
|
||||
}
|
||||
|
||||
public static <T> List<T> merge(Collection<T> a, Collection<T> b) {
|
||||
LinkedList<T> result = new LinkedList<>();
|
||||
public static <T> List<T> merge(Collection<? extends T> a, Collection<? extends T> b) {
|
||||
List<T> result = new ArrayList<>();
|
||||
if (a != null)
|
||||
result.addAll(a);
|
||||
if (b != null)
|
||||
@@ -225,17 +225,6 @@ public final class Lang {
|
||||
return result;
|
||||
}
|
||||
|
||||
public static <T> List<T> merge(Collection<T> a, Collection<T> b, Collection<T> c) {
|
||||
LinkedList<T> result = new LinkedList<>();
|
||||
if (a != null)
|
||||
result.addAll(a);
|
||||
if (b != null)
|
||||
result.addAll(b);
|
||||
if (c != null)
|
||||
result.addAll(c);
|
||||
return result;
|
||||
}
|
||||
|
||||
public static void executeDelayed(Runnable runnable, TimeUnit timeUnit, long timeout, boolean isDaemon) {
|
||||
thread(() -> {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user