Lines Matching full:code
34 * Static utility methods pertaining to {@code byte} primitives, that are not
48 * Returns a hash code for {@code value}; equal to the result of invoking
49 * {@code ((Byte) value).hashCode()}.
51 * @param value a primitive {@code byte} value
52 * @return a hash code for the value
59 * Returns {@code true} if {@code target} is present as an element anywhere in
60 * {@code array}.
62 * @param array an array of {@code byte} values, possibly empty
63 * @param target a primitive {@code byte} value
64 * @return {@code true} if {@code array[i] == target} for some value of {@code
77 * Returns the index of the first appearance of the value {@code target} in
78 * {@code array}.
80 * @param array an array of {@code byte} values, possibly empty
81 * @param target a primitive {@code byte} value
82 * @return the least index {@code i} for which {@code array[i] == target}, or
83 * {@code -1} if no such index exists.
101 * Returns the start position of the first occurrence of the specified {@code
102 * target} within {@code array}, or {@code -1} if there is no such occurrence.
104 * <p>More formally, returns the lowest index {@code i} such that {@code
106 * the same elements as {@code target}.
108 * @param array the array to search for the sequence {@code target}
109 * @param target the array to search for as a sub-sequence of {@code array}
131 * Returns the index of the last appearance of the value {@code target} in
132 * {@code array}.
134 * @param array an array of {@code byte} values, possibly empty
135 * @param target a primitive {@code byte} value
136 * @return the greatest index {@code i} for which {@code array[i] == target},
137 * or {@code -1} if no such index exists.
156 * For example, {@code concat(new byte[] {a, b}, new byte[] {}, new
157 * byte[] {c}} returns the array {@code {a, b, c}}.
159 * @param arrays zero or more {@code byte} arrays
178 * Returns an array containing the same values as {@code array}, but
179 * guaranteed to be of a specified minimum length. If {@code array} already
180 * has a length of at least {@code minLength}, it is returned directly.
181 * Otherwise, a new array of size {@code minLength + padding} is returned,
182 * containing the values of {@code array}, and zeroes in the remaining places.
188 * @throws IllegalArgumentException if {@code minLength} or {@code padding} is
190 * @return an array containing the values of {@code array}, with guaranteed
191 * minimum length {@code minLength}
210 * Copies a collection of {@code Byte} instances into a new array of
211 * primitive {@code byte} values.
213 * <p>Elements are copied from the argument collection as if by {@code
217 * @param collection a collection of {@code Byte} objects
218 * @return an array containing the same values as {@code collection}, in the
220 * @throws NullPointerException if {@code collection} or any of its elements
240 * but any attempt to set a value to {@code null} will result in a {@link
244 * {@code Byte} objects written to or read from it. For example, whether
245 * {@code list.get(0) == list.get(0)} is true for the returned list is