Home | History | Annotate | Download | only in primitives

Lines Matching full:code

36  * Static utility methods pertaining to {@code double} primitives, that are not
47 * Returns a hash code for {@code value}; equal to the result of invoking
48 * {@code ((Double) value).hashCode()}.
50 * @param value a primitive {@code double} value
51 * @return a hash code for the value
61 * Compares the two specified {@code double} values. The sign of the value
62 * returned is the same as that of <code>((Double) a).{@linkplain
63 * Double#compareTo compareTo}(b)</code>. As with that method, {@code NaN} is
64 * treated as greater than all other values, and {@code 0.0 > -0.0}.
66 * @param a the first {@code double} to compare
67 * @param b the second {@code double} to compare
68 * @return a negative value if {@code a} is less than {@code b}; a positive
69 * value if {@code a} is greater than {@code b}; or zero if they are equal
76 * Returns {@code true} if {@code target} is present as an element anywhere in
77 * {@code array}. Note that this always returns {@code false} when {@code
78 * target} is {@code NaN}.
80 * @param array an array of {@code double} values, possibly empty
81 * @param target a primitive {@code double} value
82 * @return {@code true} if {@code array[i] == target} for some value of {@code
95 * Returns the index of the first appearance of the value {@code target} in
96 * {@code array}. Note that this always returns {@code -1} when {@code target}
97 * is {@code NaN}.
99 * @param array an array of {@code double} values, possibly empty
100 * @param target a primitive {@code double} value
101 * @return the least index {@code i} for which {@code array[i] == target}, or
102 * {@code -1} if no such index exists.
120 * Returns the start position of the first occurrence of the specified {@code
121 * target} within {@code array}, or {@code -1} if there is no such occurrence.
123 * <p>More formally, returns the lowest index {@code i} such that {@code
125 * the same elements as {@code target}.
127 * <p>Note that this always returns {@code -1} when {@code target} contains
128 * {@code NaN}.
130 * @param array the array to search for the sequence {@code target}
131 * @param target the array to search for as a sub-sequence of {@code array}
153 * Returns the index of the last appearance of the value {@code target} in
154 * {@code array}. Note that this always returns {@code -1} when {@code target}
155 * is {@code NaN}.
157 * @param array an array of {@code double} values, possibly empty
158 * @param target a primitive {@code double} value
159 * @return the greatest index {@code i} for which {@code array[i] == target},
160 * or {@code -1} if no such index exists.
178 * Returns the least value present in {@code array}, using the same rules of
181 * @param array a <i>nonempty</i> array of {@code double} values
182 * @return the value present in {@code array} that is less than or equal to
184 * @throws IllegalArgumentException if {@code array} is empty
196 * Returns the greatest value present in {@code array}, using the same rules
199 * @param array a <i>nonempty</i> array of {@code double} values
200 * @return the value present in {@code array} that is greater than or equal to
202 * @throws IllegalArgumentException if {@code array} is empty
215 * For example, {@code concat(new double[] {a, b}, new double[] {}, new
216 * double[] {c}} returns the array {@code {a, b, c}}.
218 * @param arrays zero or more {@code double} arrays
237 * Returns an array containing the same values as {@code array}, but
238 * guaranteed to be of a specified minimum length. If {@code array} already
239 * has a length of at least {@code minLength}, it is returned directly.
240 * Otherwise, a new array of size {@code minLength + padding} is returned,
241 * containing the values of {@code array}, and zeroes in the remaining places.
247 * @throws IllegalArgumentException if {@code minLength} or {@code padding} is
249 * @return an array containing the values of {@code array}, with guaranteed
250 * minimum length {@code minLength}
269 * Returns a string containing the supplied {@code double} values, converted
271 * by {@code separator}. For example, {@code join("-", 1.0, 2.0, 3.0)} returns
272 * the string {@code "1.0-2.0-3.0"}.
276 * @param array an array of {@code double} values, possibly empty
294 * Returns a comparator that compares two {@code double} arrays
299 * {@code [] < [1.0] < [1.0, 2.0] < [2.0]}.
329 * Copies a collection of {@code Double} instances into a new array of
330 * primitive {@code double} values.
332 * <p>Elements are copied from the argument collection as if by {@code
336 * @param collection a collection of {@code Double} objects
337 * @return an array containing the same values as {@code collection}, in the
339 * @throws NullPointerException if {@code collection} or any of its elements
359 * but any attempt to set a value to {@code null} will result in a {@link
363 * {@code Double} objects written to or read from it. For example, whether
364 * {@code list.get(0) == list.get(0)} is true for the returned list is
367 * <p>The returned list may have unexpected behavior if it contains {@code
368 * NaN}, or if {@code NaN} is used as a parameter to any of its methods.