24 */
25 package java.util.stream;
26
27 import java.util.EnumMap;
28 import java.util.Map;
29 import java.util.Spliterator;
30
31 /**
32 * Flags corresponding to characteristics of streams and operations. Flags are
33 * utilized by the stream framework to control, specialize or optimize
34 * computation.
35 *
36 * <p>
37 * Stream flags may be used to describe characteristics of several different
38 * entities associated with streams: stream sources, intermediate operations,
39 * and terminal operations. Not all stream flags are meaningful for all
40 * entities; the following table summarizes which flags are meaningful in what
41 * contexts:
42 *
43 * <div>
44 * <table>
45 * <caption>Type Characteristics</caption>
46 * <thead class="tableSubHeadingColor">
47 * <tr>
48 * <th colspan="2"> </th>
49 * <th>{@code DISTINCT}</th>
50 * <th>{@code SORTED}</th>
51 * <th>{@code ORDERED}</th>
52 * <th>{@code SIZED}</th>
53 * <th>{@code SHORT_CIRCUIT}</th>
54 * </tr>
55 * </thead>
56 * <tbody>
57 * <tr>
58 * <th colspan="2" class="tableSubHeadingColor">Stream source</th>
59 * <td>Y</td>
60 * <td>Y</td>
61 * <td>Y</td>
62 * <td>Y</td>
63 * <td>N</td>
64 * </tr>
|
24 */
25 package java.util.stream;
26
27 import java.util.EnumMap;
28 import java.util.Map;
29 import java.util.Spliterator;
30
31 /**
32 * Flags corresponding to characteristics of streams and operations. Flags are
33 * utilized by the stream framework to control, specialize or optimize
34 * computation.
35 *
36 * <p>
37 * Stream flags may be used to describe characteristics of several different
38 * entities associated with streams: stream sources, intermediate operations,
39 * and terminal operations. Not all stream flags are meaningful for all
40 * entities; the following table summarizes which flags are meaningful in what
41 * contexts:
42 *
43 * <div>
44 * <table class="borderless">
45 * <caption>Type Characteristics</caption>
46 * <thead class="tableSubHeadingColor">
47 * <tr>
48 * <th colspan="2"> </th>
49 * <th>{@code DISTINCT}</th>
50 * <th>{@code SORTED}</th>
51 * <th>{@code ORDERED}</th>
52 * <th>{@code SIZED}</th>
53 * <th>{@code SHORT_CIRCUIT}</th>
54 * </tr>
55 * </thead>
56 * <tbody>
57 * <tr>
58 * <th colspan="2" class="tableSubHeadingColor">Stream source</th>
59 * <td>Y</td>
60 * <td>Y</td>
61 * <td>Y</td>
62 * <td>Y</td>
63 * <td>N</td>
64 * </tr>
|