MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / nonNegative

Method nonNegative

java/src/org/openqa/selenium/internal/Require.java:90–96  ·  view source on GitHub ↗
(String argName, @Nullable Duration arg)

Source from the content-addressed store, hash-verified

88 }
89
90 public static Duration nonNegative(String argName, @Nullable Duration arg) {
91 nonNull(argName, arg);
92 if (arg.isNegative()) {
93 throw new IllegalArgumentException(String.format(MUST_BE_NON_NEGATIVE, argName));
94 }
95 return arg;
96 }
97
98 public static Duration nonNegative(@Nullable Duration arg) {
99 nonNull("Duration", arg);

Callers 15

canCheckLongArgumentMethod · 0.95
pauseMethod · 0.95
ClientConfigMethod · 0.95
usingPortMethod · 0.95
accuracyMethod · 0.95
altitudeAccuracyMethod · 0.95
speedMethod · 0.95
ScreenAreaMethod · 0.95
StackFrameMethod · 0.95

Calls 2

nonNullMethod · 0.95
formatMethod · 0.45

Tested by 4

canCheckLongArgumentMethod · 0.76