Lines Matching defs:array

75    * Returns the least value present in {@code array}, treating values as unsigned.
77 * @param array a <i>nonempty</i> array of unsigned {@code int} values
78 * @return the value present in {@code array} that is less than or equal to every other value in
79 * the array according to {@link #compare}
80 * @throws IllegalArgumentException if {@code array} is empty
82 public static int min(int... array) {
83 checkArgument(array.length > 0);
84 int min = flip(array[0]);
85 for (int i = 1; i < array.length; i++) {
86 int next = flip(array[i]);
95 * Returns the greatest value present in {@code array}, treating values as unsigned.
97 * @param array a <i>nonempty</i> array of unsigned {@code int} values
98 * @return the value present in {@code array} that is greater than or equal to every other value
99 * in the array according to {@link #compare}
100 * @throws IllegalArgumentException if {@code array} is empty
102 public static int max(int... array) {
103 checkArgument(array.length > 0);
104 int max = flip(array[0]);
105 for (int i = 1; i < array.length; i++) {
106 int next = flip(array[i]);
120 * @param array an array of unsigned {@code int} values, possibly empty
122 public static String join(String separator, int... array) {
124 if (array.length == 0) {
129 StringBuilder builder = new StringBuilder(array.length * 5);
130 builder.append(array[0]);
131 for (int i = 1; i < array.length; i++) {
132 builder.append(separator).append(toString(array[i]));
140 * any common prefix, or when one array is a prefix of the other, treats the shorter array as the