Lines Matching full:code
36 * Static utility methods pertaining to {@code float} primitives, that are not
47 * Returns a hash code for {@code value}; equal to the result of invoking
48 * {@code ((Float) value).hashCode()}.
50 * @param value a primitive {@code float} value
51 * @return a hash code for the value
59 * Compares the two specified {@code float} values using {@link
64 * @param a the first {@code float} to compare
65 * @param b the second {@code float} to compare
73 * Returns {@code true} if {@code target} is present as an element anywhere in
74 * {@code array}. Note that this always returns {@code false} when {@code
75 * target} is {@code NaN}.
77 * @param array an array of {@code float} values, possibly empty
78 * @param target a primitive {@code float} value
79 * @return {@code true} if {@code array[i] == target} for some value of {@code
92 * Returns the index of the first appearance of the value {@code target} in
93 * {@code array}. Note that this always returns {@code -1} when {@code target}
94 * is {@code NaN}.
96 * @param array an array of {@code float} values, possibly empty
97 * @param target a primitive {@code float} value
98 * @return the least index {@code i} for which {@code array[i] == target}, or
99 * {@code -1} if no such index exists.
117 * Returns the start position of the first occurrence of the specified {@code
118 * target} within {@code array}, or {@code -1} if there is no such occurrence.
120 * <p>More formally, returns the lowest index {@code i} such that {@code
122 * the same elements as {@code target}.
124 * <p>Note that this always returns {@code -1} when {@code target} contains
125 * {@code NaN}.
127 * @param array the array to search for the sequence {@code target}
128 * @param target the array to search for as a sub-sequence of {@code array}
150 * Returns the index of the last appearance of the value {@code target} in
151 * {@code array}. Note that this always returns {@code -1} when {@code target}
152 * is {@code NaN}.
154 * @param array an array of {@code float} values, possibly empty
155 * @param target a primitive {@code float} value
156 * @return the greatest index {@code i} for which {@code array[i] == target},
157 * or {@code -1} if no such index exists.
175 * Returns the least value present in {@code array}, using the same rules of
178 * @param array a <i>nonempty</i> array of {@code float} values
179 * @return the value present in {@code array} that is less than or equal to
181 * @throws IllegalArgumentException if {@code array} is empty
193 * Returns the greatest value present in {@code array}, using the same rules
196 * @param array a <i>nonempty</i> array of {@code float} values
197 * @return the value present in {@code array} that is greater than or equal to
199 * @throws IllegalArgumentException if {@code array} is empty
212 * For example, {@code concat(new float[] {a, b}, new float[] {}, new
213 * float[] {c}} returns the array {@code {a, b, c}}.
215 * @param arrays zero or more {@code float} arrays
234 * Returns an array containing the same values as {@code array}, but
235 * guaranteed to be of a specified minimum length. If {@code array} already
236 * has a length of at least {@code minLength}, it is returned directly.
237 * Otherwise, a new array of size {@code minLength + padding} is returned,
238 * containing the values of {@code array}, and zeroes in the remaining places.
244 * @throws IllegalArgumentException if {@code minLength} or {@code padding} is
246 * @return an array containing the values of {@code array}, with guaranteed
247 * minimum length {@code minLength}
266 * Returns a string containing the supplied {@code float} values, converted
268 * {@code separator}. For example, {@code join("-", 1.0f, 2.0f, 3.0f)}
269 * returns the string {@code "1.0-2.0-3.0"}.
273 * @param array an array of {@code float} values, possibly empty
291 * Returns a comparator that compares two {@code float} arrays
295 * shorter array as the lesser. For example, {@code [] < [1.0f] < [1.0f, 2.0f]
326 * Copies a collection of {@code Float} instances into a new array of
327 * primitive {@code float} values.
329 * <p>Elements are copied from the argument collection as if by {@code
333 * @param collection a collection of {@code Float} objects
334 * @return an array containing the same values as {@code collection}, in the
336 * @throws NullPointerException if {@code collection} or any of its elements
356 * but any attempt to set a value to {@code null} will result in a {@link
360 * {@code Float} objects written to or read from it. For example, whether
361 * {@code list.get(0) == list.get(0)} is true for the returned list is
364 * <p>The returned list may have unexpected behavior if it contains {@code
365 * NaN}, or if {@code NaN} is used as a parameter to any of its methods.