MCPcopy Index your code
hub / github.com/antlr/codebuff / max

Method max

output/java_guava/1.4.18/Ints.java:270–279  ·  view source on GitHub ↗

Returns the greatest value present in array. @param array a nonempty array of int values @return the value present in array that is greater than or equal to every other value in the array @throws IllegalArgumentException if array is empty

(int... array)

Source from the content-addressed store, hash-verified

268
269
270 public static int max(int... array) {
271 checkArgument(array.length > 0);
272 int max = array[0];
273 for (int i = 1; i < array.length; i++) {
274 if (array[i] > max) {
275 max = array[i];
276 }
277 }
278 return max;
279 }
280
281 /**
282 * Returns the values from each provided array combined into a single array. For example,

Callers 15

distanceMethod · 0.45
removeMethod · 0.45
minusMethod · 0.45
maxEncodedSizeMethod · 0.45
intersectionMethod · 0.45
initialQueueSizeMethod · 0.45
addRightChildMethod · 0.45
addLeftChildMethod · 0.45
recomputeHeightMethod · 0.45
collectTypesMethod · 0.45
createSafeOctetsMethod · 0.45

Calls 1

checkArgumentMethod · 0.45

Tested by 1

toByteArrayMethod · 0.36