mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
isEmpty() for any collection
This commit is contained in:
@@ -2061,8 +2061,8 @@ public class ContainerUtil extends ContainerUtilRt {
|
||||
}
|
||||
|
||||
@Contract("null -> true")
|
||||
public static <T> boolean isEmpty(List<T> list) {
|
||||
return list == null || list.isEmpty();
|
||||
public static <T> boolean isEmpty(Collection<T> collection) {
|
||||
return collection == null || collection.isEmpty();
|
||||
}
|
||||
|
||||
private interface ConcurrentMapFactory {
|
||||
|
||||
Reference in New Issue
Block a user