Lines Matching full:array
86 * Returns the least value present in {@code array}.
88 * @param array a <i>nonempty</i> array of {@code byte} values
89 * @return the value present in {@code array} that is less than or equal to
90 * every other value in the array
91 * @throws IllegalArgumentException if {@code array} is empty
93 public static byte min(byte... array) {
94 checkArgument(array.length > 0);
95 int min = array[0] & 0xFF;
96 for (int i = 1; i < array.length; i++) {
97 int next = array[i] & 0xFF;
106 * Returns the greatest value present in {@code array}.
108 * @param array a <i>nonempty</i> array of {@code byte} values
109 * @return the value present in {@code array} that is greater than or equal
110 * to every other value in the array
111 * @throws IllegalArgumentException if {@code array} is empty
113 public static byte max(byte... array) {
114 checkArgument(array.length > 0);
115 int max = array[0] & 0xFF;
116 for (int i = 1; i < array.length; i++) {
117 int next = array[i] & 0xFF;
132 * @param array an array of {@code byte} values, possibly empty
134 public static String join(String separator, byte... array) {
136 if (array.length == 0) {
141 StringBuilder builder = new StringBuilder(array.length * 5);
142 builder.append(array[0] & 0xFF);
143 for (int i = 1; i < array.length; i++) {
144 builder.append(separator).append(array[i] & 0xFF);
153 * prefix, or when one array is a prefix of the other, treats the shorter
154 * array as the lesser. For example, {@code [] < [0x01] < [0x01, 0x7F] <