add allEmpty
This commit is contained in:
@@ -81,6 +81,15 @@ public interface TimiJava {
|
||||
return false;
|
||||
}
|
||||
|
||||
static boolean allEmpty(Object... objects) {
|
||||
for (Object object : objects) {
|
||||
if (isNotEmpty(object)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
static boolean allNotEmpty(Object... objects) {
|
||||
for (Object object : objects) {
|
||||
if (isEmpty(object)) {
|
||||
|
||||
Reference in New Issue
Block a user