MCPcopy Create free account
hub / github.com/davidgiven/luje / med3

Method med3

lib/java/util/Arrays.java:1593–1597  ·  view source on GitHub ↗
(byte[] array, int a, int b, int c)

Source from the content-addressed store, hash-verified

1591 }
1592
1593 private static int med3(byte[] array, int a, int b, int c) {
1594 byte x = array[a], y = array[b], z = array[c];
1595 return x < y ? (y < z ? b : (x < z ? c : a)) : (y > z ? b : (x > z ? c
1596 : a));
1597 }
1598
1599 private static int med3(char[] array, int a, int b, int c) {
1600 char x = array[a], y = array[b], z = array[c];

Callers 1

sortMethod · 0.95

Calls 1

lessThanMethod · 0.95

Tested by

no test coverage detected