fix build
[yosql.git] / yosql-internals / yosql-internals-jdk-utils / src / main / java / wtf / metio / yosql / internals / jdk / Buckets.java
blob728934c570a32d61956d4b1c1b7f5869e5bf4f1a
1 /*
2 * This file is part of yosql. It is subject to the license terms in the LICENSE file found in the top-level
3 * directory of this distribution and at http://creativecommons.org/publicdomain/zero/1.0/. No part of yosql,
4 * including this file, may be copied, modified, propagated, or distributed except according to the terms contained
5 * in the LICENSE file.
6 */
8 package wtf.metio.yosql.internals.jdk;
10 import java.util.Collection;
12 /**
13 * Utility methods that handle {@link java.util.Collection Collections}. The class is called "Buckets" because
14 * "Collections" is way too common.
16 public final class Buckets {
18 /**
19 * @param collection The collection to check.
20 * @return true if value is not null and not empty, false otherwise.
22 public static boolean hasEntries(final Collection<?> collection) {
23 return collection != null && !collection.isEmpty();
26 private Buckets() {
27 // utility class