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

Method min

output/java_guava/1.4.17/Ints.java:249–258  ·  view source on GitHub ↗

Returns the least value present in array. @param array a nonempty array of int values @return the value present in array that is less 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

247
248
249 public static int min(int... array) {
250 checkArgument(array.length > 0);
251 int min = array[0];
252 for (int i = 1; i < array.length; i++) {
253 if (array[i] < min) {
254 min = array[i];
255 }
256 }
257 return min;
258 }
259
260 /**
261 * Returns the greatest value present in {@code array}.

Callers 15

writeBytesToMethod · 0.95
getTemplateRangeMethod · 0.45
addMethod · 0.45
storeArgsMethod · 0.45
zip_mapMethod · 0.45
getTemplateRangeMethod · 0.45
addMethod · 0.45
storeArgsMethod · 0.45
zip_mapMethod · 0.45
getTemplateRangeMethod · 0.45
addMethod · 0.45
storeArgsMethod · 0.45

Calls 1

checkArgumentMethod · 0.45

Tested by 5

availableMethod · 0.36
readMethod · 0.36
skipMethod · 0.36
skipUpToMethod · 0.36
skipSafelyMethod · 0.36