Validates that the specified argument collection is neither null nor a size of zero (no elements); otherwise throwing an exception. Validate.notEmpty(myCollection); The message in the exception is "The validated collection is empty". @param The collection ty
(final T collection)
| 826 | * @see #notEmpty(Collection, String, Object...) |
| 827 | */ |
| 828 | public static <T extends Collection<?>> T notEmpty(final T collection) { |
| 829 | return notEmpty(collection, DEFAULT_NOT_EMPTY_COLLECTION_EX_MESSAGE); |
| 830 | } |
| 831 | |
| 832 | /** |
| 833 | * <p>Validates that the specified argument map is neither {@code null} |