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
8 package wtf
.metio
.yosql
.internals
.jdk
;
10 import java
.util
.Collection
;
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
{
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();