HomeSort by relevance Sort by last modified time
    Searched refs:SORTED (Results 1 - 25 of 40) sorted by null

1 2

  /libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/
StreamOpFlagsTest.java 184 assertTrue(StreamOpFlag.SORTED.isKnown(opsFlags));
185 assertFalse(StreamOpFlag.SORTED.isCleared(opsFlags));
186 assertFalse(StreamOpFlag.SORTED.isPreserved(opsFlags));
194 assertTrue(StreamOpFlag.SORTED.isKnown(streamFlags));
202 assertSpliteratorMask(StreamOpFlag.SORTED.set(), StreamOpFlag.IS_SORTED);
203 assertSpliteratorMask(StreamOpFlag.SORTED.clear(), 0);
223 assertStreamMask(StreamOpFlag.SORTED.set(), StreamOpFlag.IS_SORTED);
224 assertStreamMask(StreamOpFlag.SORTED.clear(), 0);
244 assertOpMask(StreamOpFlag.SORTED.set(), StreamOpFlag.IS_SORTED);
245 assertOpMask(StreamOpFlag.SORTED.clear(), StreamOpFlag.NOT_SORTED)
    [all...]
StreamFlagsTest.java 69 EnumSet.of(DISTINCT, SORTED, SHORT_CIRCUIT));
72 EnumSet.of(DISTINCT, SORTED, SHORT_CIRCUIT));
75 EnumSet.of(ORDERED, SORTED, SHORT_CIRCUIT));
77 EnumSet.of(ORDERED, SIZED, DISTINCT, SORTED),
81 EnumSet.of(SORTED, SHORT_CIRCUIT));
84 EnumSet.of(DISTINCT, SORTED, SHORT_CIRCUIT));
FlagOpTest.java 165 EnumSet<StreamOpFlag> preserve = EnumSet.of(StreamOpFlag.DISTINCT, StreamOpFlag.SORTED);
168 for (StreamOpFlag f : EnumSet.of(StreamOpFlag.DISTINCT, StreamOpFlag.SORTED)) {
199 EnumSet<StreamOpFlag> preserve = EnumSet.of(StreamOpFlag.DISTINCT, StreamOpFlag.SORTED);
203 for (StreamOpFlag f : EnumSet.of(StreamOpFlag.ORDERED, StreamOpFlag.DISTINCT, StreamOpFlag.SORTED)) {
  /libcore/ojluni/src/main/java/java/util/
SortedSet.java 31 * ordering}, or by a {@link Comparator} typically provided at sorted
37 * <p>All elements inserted into a sorted set must implement the <tt>Comparable</tt>
42 * the sorted set. Attempts to violate this restriction will cause the
46 * <p>Note that the ordering maintained by a sorted set (whether or not an
48 * the sorted set is to correctly implement the <tt>Set</tt> interface. (See
52 * operation, but a sorted set performs all element comparisons using its
54 * deemed equal by this method are, from the standpoint of the sorted set,
55 * equal. The behavior of a sorted set <i>is</i> well-defined even if its
59 * <p>All general-purpose sorted set implementation classes should
61 * constructor, which creates an empty sorted set sorted according t
    [all...]
Spliterators.java     [all...]
Spliterator.java 51 * {@link #DISTINCT}, {@link #SORTED}, {@link #SIZED}, {@link #NONNULL},
57 * report {@code SORTED}. Characteristics are reported as a simple unioned bit
414 * #ORDERED}, {@link #DISTINCT}, {@link #SORTED}, {@link #SIZED},
451 * If this Spliterator's source is {@link #SORTED} by a {@link Comparator},
452 * returns that {@code Comparator}. If the source is {@code SORTED} in
454 * if the source is not {@code SORTED}, throws {@link IllegalStateException}.
459 * @return a Comparator, or {@code null} if the elements are sorted in the
462 * a characteristic of {@code SORTED}.
499 * are sorted by their natural ordering.
501 * <p>A Spliterator that reports {@code SORTED} must also repor
    [all...]
BitSet.java     [all...]
TreeMap.java 36 * The map is sorted according to the {@linkplain Comparable natural
45 * <p>Note that the ordering maintained by a tree map, like any sorted map, and
47 * with {@code equals}</em> if this sorted map is to correctly implement the
51 * operation, but a sorted map performs all key comparisons using its {@code
53 * this method are, from the standpoint of the sorted map, equal. The behavior
54 * of a sorted map <em>is</em> well-defined even if its ordering is
191 * using the same ordering as the specified sorted map. This
194 * @param m the sorted map whose mappings are to be placed in this map,
798 * <em>fail-fast</em>, and additionally reports {@link Spliterator#SORTED}
872 * <em>fail-fast</em>, and additionally reports {@link Spliterator#SORTED} an
    [all...]
  /libcore/ojluni/src/main/java/java/util/stream/
StreamOpFlag.java 50 * <th>{@code SORTED}</th>
135 * {@link java.util.Spliterator#DISTINCT}, {@link java.util.Spliterator#SORTED},
219 * DISTINCT SORTED ORDERED SIZED SHORT_CIRCUIT
258 * Note: The {@link java.util.Spliterator#SORTED} characteristic can define
263 * is likely to be unreliable. Therefore the {@code SORTED} characteristic
265 * {@code SORTED} flag.
268 // Matches Spliterator.SORTED
269 SORTED(1,
599 * The bit value to set or inject {@link #SORTED}.
601 public static final int IS_SORTED = SORTED.set
    [all...]
SortedOps.java 36 * Factory methods for transforming streams into sorted streams.
45 * Appends a "sorted" operation to the provided stream.
55 * Appends a "sorted" operation to the provided stream.
67 * Appends a "sorted" operation to the provided stream.
77 * Appends a "sorted" operation to the provided stream.
87 * Appends a "sorted" operation to the provided stream.
136 // If the input is already naturally sorted and this operation
137 // also naturally sorted then this is a no-op
138 if (StreamOpFlag.SORTED.isKnown(flags) && isNaturalSort)
150 // If the input is already naturally sorted and this operatio
    [all...]
DistinctOps.java 59 // If the stream is SORTED then it should also be ORDERED so the following will also
124 } else if (StreamOpFlag.SORTED.isKnown(flags)) {
Streams.java 128 Spliterator.DISTINCT | Spliterator.SORTED;
252 Spliterator.DISTINCT | Spliterator.SORTED;
762 // Concatenation loses DISTINCT and SORTED characteristics
764 & ~(Spliterator.DISTINCT | Spliterator.SORTED
StreamSpliterators.java 258 if (!hasCharacteristics(SORTED))
    [all...]
  /external/autotest/server/site_tests/firmware_Cr50ConsoleCommands/
firmware_Cr50ConsoleCommands.py 33 SORTED = True
35 ['pinmux', GENERAL_FORMAT, COMPARE_LINES, not SORTED],
36 ['help', HELP_FORMAT, COMPARE_WORDS, SORTED],
37 ['gpiocfg', GENERAL_FORMAT, COMPARE_LINES, not SORTED],
  /libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DistinctOpTest.java 111 // Need to inject SORTED into the sorted list source since
112 // sorted() with a comparator ironically clears SORTED
122 c -> StreamSupport.stream(Spliterators.spliterator(c.toArray(), Spliterator.ORDERED | Spliterator.SORTED), false),
123 c -> StreamSupport.stream(Spliterators.spliterator(c.toArray(), Spliterator.ORDERED | Spliterator.SORTED), true),
124 c -> Spliterators.spliterator(c.toArray(), Spliterator.ORDERED | Spliterator.SORTED),
159 .stream(s -> s.distinct().sorted(),
169 .stream(s -> s.sorted().distinct(),
SortedOpTest.java 59 // Clear the SORTED flag
61 .sorted();
68 // Clear the SORTED flag
70 .sorted();
77 // Clear the SORTED flag
79 .sorted();
86 // Clear the SORTED flag
88 .sorted();
120 assertCountSum(countTo(0).stream().sorted(), 0, 0);
121 assertCountSum(countTo(10).stream().sorted(), 10, 55)
    [all...]
ConcatTest.java 69 { "front sorted", sortedP1, part2, Arrays.asList(1, 2, 3, 4, 5, 6, 8, 8, 6, 6, 9, 7, 10, 9) },
70 { "back sorted", part1, sortedP2, Arrays.asList(5, 3, 4, 1, 2, 6, 2, 4, 6, 7, 8, 9, 10) },
71 { "both sorted", sortedP1, sortedP2, Arrays.asList(1, 2, 3, 4, 5, 6, 6, 7, 8, 9, 10) },
72 { "reverse both sorted", sortedP2, sortedP1, Arrays.asList(6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6) },
128 // concat stream cannot guarantee sorted
129 assertFalse(sp.hasCharacteristics(Spliterator.SORTED), scenario);
  /external/guava/guava-tests/benchmark/com/google/common/collect/
SortedCopyBenchmark.java 45 SORTED {
  /libcore/luni/src/test/java/libcore/java/util/
TreeMapTest.java 646 Spliterator.DISTINCT | Spliterator.ORDERED | Spliterator.SIZED | Spliterator.SORTED,
738 Spliterator.DISTINCT | Spliterator.ORDERED | Spliterator.SIZED | Spliterator.SORTED,
  /libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
SpliteratorTestHelper.java 601 assertTrue(s.hasCharacteristics(Spliterator.SORTED));
603 assertFalse(s.hasCharacteristics(Spliterator.SORTED));
LambdaTestHelpers.java 458 if (StreamOpFlag.SORTED.isKnown(flags)) sj.add("IS_SORTED");
  /libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
SpliteratorTestHelper.java 601 assertTrue(s.hasCharacteristics(Spliterator.SORTED));
603 assertFalse(s.hasCharacteristics(Spliterator.SORTED));
LambdaTestHelpers.java 459 if (StreamOpFlag.SORTED.isKnown(flags)) sj.add("IS_SORTED");
  /libcore/ojluni/src/main/java/java/util/concurrent/
ConcurrentSkipListMap.java 67 * The map is sorted according to the {@linkplain Comparable natural
249 * However, even when this happens, the index lists remain sorted,
410 * Nodes hold keys and values, and are singly linked in sorted
709 * unlinking doesn't require restart, they aren't sorted out
    [all...]
  /external/v8/src/
objects.h     [all...]

Completed in 530 milliseconds

1 2