MCPcopy Create free account
hub / github.com/apache/tomcat / max

Method max

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

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

(final Instant a, final Instant b)

Source from the content-addressed store, hash-verified

162 * @return the larger of {@code a} and {@code b}.
163 */
164 static Instant max(final Instant a, final Instant b) {
165 return a.compareTo(b) > 0 ? a : b;
166 }
167
168 /**
169 * Returns the smaller of two {@code Instant} values. That is, the result is the argument closer to the value of

Callers 8

getLastUsedInstantMethod · 0.95
registerNewInstanceMethod · 0.45
updateMethod · 0.45
calculateDeficitMethod · 0.45
getGenericTypeMethod · 0.45
needNewBufferMethod · 0.45
MultipartStreamMethod · 0.45
getByteBufferHolderMethod · 0.45

Calls 1

compareToMethod · 0.65

Tested by

no test coverage detected