/** * Throw an {@link IllegalArgumentException} with a default message if the * {@link Object} array has a length of zero. * * @param objects * @return objects * @throws IllegalArgumentException */ public static <V> V[] notEmpty(final V[] objects) throws IllegalArgumentException { return notEmpty(null, objects); }
/** * Throw an {@link IllegalArgumentException} with a default message if the * string has a length of zero. * * @param string * @return string * @throws IllegalArgumentException */ public static String notEmpty(final String string) throws IllegalArgumentException { return notEmpty(null, string); }