Lines Matching full:code
37 * Static utility methods pertaining to {@code boolean} primitives, that are not
48 * Returns a hash code for {@code value}; equal to the result of invoking
49 * {@code ((Boolean) value).hashCode()}.
51 * @param value a primitive {@code boolean} value
52 * @return a hash code for the value
59 * Compares the two specified {@code boolean} values in the standard way
60 * ({@code false} is considered less than {@code true}). The sign of the
61 * value returned is the same as that of {@code ((Boolean) a).compareTo(b)}.
63 * @param a the first {@code boolean} to compare
64 * @param b the second {@code boolean} to compare
65 * @return a positive number if only {@code a} is {@code true}, a negative
66 * number if only {@code b} is true, or zero if {@code a == b}
73 * Returns {@code true} if {@code target} is present as an element anywhere in
74 * {@code array}.
77 * BitSet} instead, replacing {@code Booleans.contains(array, true)}
78 * with {@code !bitSet.isEmpty()} and {@code Booleans.contains(array, false)}
79 * with {@code bitSet.nextClearBit(0) == sizeOfBitSet}.
81 * @param array an array of {@code boolean} values, possibly empty
82 * @param target a primitive {@code boolean} value
83 * @return {@code true} if {@code array[i] == target} for some value of {@code
96 * Returns the index of the first appearance of the value {@code target} in
97 * {@code array}.
103 * @param array an array of {@code boolean} values, possibly empty
104 * @param target a primitive {@code boolean} value
105 * @return the least index {@code i} for which {@code array[i] == target}, or
106 * {@code -1} if no such index exists.
124 * Returns the start position of the first occurrence of the specified {@code
125 * target} within {@code array}, or {@code -1} if there is no such occurrence.
127 * <p>More formally, returns the lowest index {@code i} such that {@code
129 * the same elements as {@code target}.
131 * @param array the array to search for the sequence {@code target}
132 * @param target the array to search for as a sub-sequence of {@code array}
154 * Returns the index of the last appearance of the value {@code target} in
155 * {@code array}.
157 * @param array an array of {@code boolean} values, possibly empty
158 * @param target a primitive {@code boolean} value
159 * @return the greatest index {@code i} for which {@code array[i] == target},
160 * or {@code -1} if no such index exists.
179 * For example, {@code concat(new boolean[] {a, b}, new boolean[] {}, new
180 * boolean[] {c}} returns the array {@code {a, b, c}}.
182 * @param arrays zero or more {@code boolean} arrays
201 * Returns an array containing the same values as {@code array}, but
202 * guaranteed to be of a specified minimum length. If {@code array} already
203 * has a length of at least {@code minLength}, it is returned directly.
204 * Otherwise, a new array of size {@code minLength + padding} is returned,
205 * containing the values of {@code array}, and zeroes in the remaining places.
211 * @throws IllegalArgumentException if {@code minLength} or {@code padding} is
213 * @return an array containing the values of {@code array}, with guaranteed
214 * minimum length {@code minLength}
233 * Returns a string containing the supplied {@code boolean} values separated
234 * by {@code separator}. For example, {@code join("-", false, true, false)}
235 * returns the string {@code "false-true-false"}.
239 * @param array an array of {@code boolean} values, possibly empty
257 * Returns a comparator that compares two {@code boolean} arrays
262 * {@code [] < [false] < [false, true] < [true]}.
292 * Copies a collection of {@code Boolean} instances into a new array of
293 * primitive {@code boolean} values.
295 * <p>Elements are copied from the argument collection as if by {@code
302 * @param collection a collection of {@code Boolean} objects
303 * @return an array containing the same values as {@code collection}, in the
305 * @throws NullPointerException if {@code collection} or any of its elements
325 * but any attempt to set a value to {@code null} will result in a {@link
329 * {@code Boolean} objects written to or read from it. For example, whether
330 * {@code list.get(0) == list.get(0)} is true for the returned list is