MCPcopy Index your code
hub / github.com/apache/tomcat / min

Method min

java/org/apache/tomcat/dbcp/pool2/impl/PoolImplUtils.java:176–178  ·  view source on GitHub ↗

Returns the smaller of two Instant values. That is, the result is the argument closer to the value of Instant#MIN. If the arguments have the same value, the result is that same value. @param a an argument. @param b another argument. @return the smaller of a and b.

(final Instant a, final Instant b)

Source from the content-addressed store, hash-verified

174 * @return the smaller of {@code a} and {@code b}.
175 */
176 static Instant min(final Instant a, final Instant b) {
177 return a.compareTo(b) < 0 ? a : b;
178 }
179
180 /**
181 * Returns a non-null duration, value if non-null, otherwise defaultValue.

Callers 15

getMinIdleMethod · 0.45
getNumTestsMethod · 0.45
drainToMethod · 0.45
calculateDeficitMethod · 0.45
getMinIdlePerKeyMethod · 0.45
getNumTestsMethod · 0.45
processSocketReadMethod · 0.45
swallowInputMethod · 0.45
getMoreDataMethod · 0.45
addCookieMethod · 0.45
readMethod · 0.45
writeMethod · 0.45

Calls 1

compareToMethod · 0.65

Tested by

no test coverage detected