MCPcopy
hub / github.com/SeleniumHQ/selenium / nonEmpty

Method nonEmpty

java/src/org/openqa/selenium/internal/Require.java:198–204  ·  view source on GitHub ↗
(String argName, @Nullable Collection<T> arg)

Source from the content-addressed store, hash-verified

196 }
197
198 public static <T> Collection<T> nonEmpty(String argName, @Nullable Collection<T> arg) {
199 nonNull(argName, arg);
200 if (arg.isEmpty()) {
201 throw new IllegalArgumentException(String.format(MUST_NOT_BE_EMPTY, argName));
202 }
203 return arg;
204 }
205
206 public static String nonBlank(String argName, @Nullable String arg) {
207 nonNull(argName, arg);

Callers 7

validateMethod · 0.95
UrlTemplateMethod · 0.95
addListenerMethod · 0.95
clearListenerMethod · 0.95
contextsMethod · 0.95
userContextsMethod · 0.95

Calls 3

nonNullMethod · 0.95
isEmptyMethod · 0.45
formatMethod · 0.45

Tested by 1