Lines Matching refs:set

111  * {@link #TERMINAL_OP_MASK} can be ANDed with a bit set of stream flags to
120 * flag bits are combined into an {@code int} bit set. <em>Stream flags</em>
121 * are a unioned bit set constructed by ORing the enum characteristic values of
122 * {@link #set()} (or, more commonly, ORing the corresponding static named
124 * bit set constructed by ORing the enum characteristic values of {@link #set()}
137 * {@link java.util.Spliterator#SIZED}. A spliterator characteristics bit set
140 * {@link #toCharacteristics(int)}. (The bit set
141 * {@link #SPLITERATOR_CHARACTERISTICS_MASK} is used to AND with a bit set to
142 * produce a valid spliterator characteristics bit set that can be converted to
208 * Each characteristic takes up 2 bits in a bit set to accommodate
214 * combining flags to align set and inject bits.
226 * 01 = set/inject
249 set(Type.SPLITERATOR).set(Type.STREAM).setAndClear(Type.OP)),
270 set(Type.SPLITERATOR).set(Type.STREAM).setAndClear(Type.OP)),
283 set(Type.SPLITERATOR).set(Type.STREAM).setAndClear(Type.OP).clear(Type.TERMINAL_OP)
298 set(Type.SPLITERATOR).set(Type.STREAM).clear(Type.OP)),
301 // gap in the bit set is deliberately retained to enable corresponding
329 set(Type.OP).set(Type.TERMINAL_OP));
384 private static MaskBuilder set(Type t) {
385 return new MaskBuilder(new EnumMap<>(Type.class)).set(t);
400 MaskBuilder set(Type t) {
432 * The set 2 bit set offset at the bit position.
434 private final int set;
437 * The clear 2 bit set offset at the bit position.
442 * The preserve 2 bit set offset at the bit position.
451 this.set = SET_BITS << position;
461 public int set() {
462 return set;
484 * Checks if this flag is set on stream flags, injected on operation flags,
492 return (flags & preserve) == set;
517 * Determines if this flag can be set for a flag type.
520 * @return true if this flag can be set for the flag type, otherwise false.
573 * Flag mask for stream flags that are set.
589 * The bit value to set or inject {@link #DISTINCT}.
591 public static final int IS_DISTINCT = DISTINCT.set;
599 * The bit value to set or inject {@link #SORTED}.
601 public static final int IS_SORTED = SORTED.set;
609 * The bit value to set or inject {@link #ORDERED}.
611 public static final int IS_ORDERED = ORDERED.set;
619 * The bit value to set {@link #SIZED}.
621 public static final int IS_SIZED = SIZED.set;
631 public static final int IS_SHORT_CIRCUIT = SHORT_CIRCUIT.set;
643 * A flag set on stream flags or injected on operation flags,
648 * A flag set on stream flags or injected on operation flags,
653 * A flag set on the stream flags or injected on operation flags,
658 * A flag not set on the stream flags or cleared/preserved on operation
663 * A flag not set on the stream flags or cleared/preserved on operation
668 * A flag not set on the stream flags,
699 * set on the stream flags.
706 // Shift left 1 to restore set flags and mask off anything other than the set flags
711 * Converts stream flags to a spliterator characteristic bit set.
714 * @return the spliterator characteristic bit set.
721 * Converts a spliterator characteristic bit set to stream flags.
730 * bit set.
746 * Converts a spliterator characteristic bit set to stream flags.
748 * @param characteristics the spliterator characteristic bit set.