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

Method positive

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

Source from the content-addressed store, hash-verified

104 }
105
106 public static Duration positive(String argName, @Nullable Duration arg) {
107 nonNull(argName, arg);
108 if (arg.isNegative() || arg.isZero()) {
109 throw new IllegalArgumentException(String.format(MUST_BE_POSITIVE, argName));
110 }
111 return arg;
112 }
113
114 public static Duration positive(@Nullable Duration arg) {
115 nonNull("Duration", arg);

Callers 15

canCheckLongArgumentMethod · 0.95
fromJsonMethod · 0.95
fromJsonMethod · 0.95
fromJsonMethod · 0.95
validateMethod · 0.95
HistoryUpdatedMethod · 0.95
fromJsonMethod · 0.95
LocalNewSessionQueueMethod · 0.95

Calls 2

nonNullMethod · 0.95
formatMethod · 0.45

Tested by 5

canCheckLongArgumentMethod · 0.76