Lines Matching defs:set

31      * Constructs a bit set to contain bits up to the given index (exclusive).
42 * Gets the maximum index (exclusive) for the given bit set.
44 * @param bits {@code non-null;} bit set in question
45 * @return {@code >= 0;} the maximum index (exclusive) that may be set
54 * @param bits {@code non-null;} bit set to operate on
55 * @param idx {@code >= 0, < getMax(set);} which bit
67 * @param bits {@code non-null;} bit set to operate on
68 * @param idx {@code >= 0, < getMax(set);} which bit
71 public static void set(int[] bits, int idx, boolean value) {
85 * @param bits {@code non-null;} bit set to operate on
86 * @param idx {@code >= 0, < getMax(set);} which bit
88 public static void set(int[] bits, int idx) {
97 * @param bits {@code non-null;} bit set to operate on
98 * @param idx {@code >= 0, < getMax(set);} which bit
107 * Returns whether or not the given bit set is empty, that is, whether
108 * no bit is set to {@code true}.
110 * @param bits {@code non-null;} bit set to operate on
126 * Gets the number of bits set to {@code true} in the given bit set.
128 * @param bits {@code non-null;} bit set to operate on
129 * @return {@code >= 0;} the bit count (aka population count) of the set
143 * Returns whether any bits are set to {@code true} in the
146 * @param bits {@code non-null;} bit set to operate on
149 * @return {@code true} if any bit is set to {@code true} in
158 * Finds the lowest-order bit set at or after the given index in the
159 * given bit set.
161 * @param bits {@code non-null;} bit set to operate on
163 * @return {@code >= -1;} lowest-order bit set at or after {@code idx},
185 * Finds the lowest-order bit set at or after the given index in the
190 * @return {@code >= -1;} lowest-order bit set at or after {@code idx},