MCPcopy Create free account
hub / github.com/antlr/codebuff / min

Method min

output/java_guava/1.4.16/UnsignedLongs.java:93–103  ·  view source on GitHub ↗

Returns the least value present in array, treating values as unsigned. @param array a nonempty array of unsigned long values @return the value present in array that is less than or equal to every other value in the array according to #compare @throws Illeg

(long... array)

Source from the content-addressed store, hash-verified

91
92
93 public static long min(long... array) {
94 checkArgument(array.length > 0);
95 long min = flip(array[0]);
96 for (int i = 1; i < array.length; i++) {
97 long next = flip(array[i]);
98 if (next < min) {
99 min = next;
100 }
101 }
102 return flip(min);
103 }
104
105 /**
106 * Returns the greatest value present in {@code array}, treating values as unsigned.

Callers 1

compareMethod · 0.45

Calls 2

flipMethod · 0.95
checkArgumentMethod · 0.45

Tested by

no test coverage detected