Home
last modified time | relevance | path

Searched refs:characteristics (Results 1 – 25 of 76) sorted by relevance

1234

/libcore/ojluni/src/main/java/java/util/
DSpliterators.java419 int characteristics) { in spliterator() argument
421 characteristics); in spliterator()
450 int characteristics) { in spliterator() argument
452 characteristics); in spliterator()
477 int characteristics) { in spliteratorUnknownSize() argument
478 return new IteratorSpliterator<>(Objects.requireNonNull(iterator), characteristics); in spliteratorUnknownSize()
507 int characteristics) { in spliterator() argument
509 size, characteristics); in spliterator()
534 int characteristics) { in spliteratorUnknownSize() argument
535 return new IntIteratorSpliterator(Objects.requireNonNull(iterator), characteristics); in spliteratorUnknownSize()
[all …]
DSpliterator.java414 return (characteristics() & SIZED) == 0 ? -1L : estimateSize(); in getExactSizeIfKnown()
438 int characteristics(); in characteristics() method
452 default boolean hasCharacteristics(int characteristics) { in hasCharacteristics() argument
453 return (characteristics() & characteristics) == characteristics; in hasCharacteristics()
/libcore/ojluni/src/main/java/java/util/stream/
DCollector.java245 Set<Characteristics> characteristics(); in characteristics() method
267 Characteristics... characteristics) { in of() argument
271 Objects.requireNonNull(characteristics); in of()
272 Set<Characteristics> cs = (characteristics.length == 0) in of()
275 characteristics)); in of()
299 Characteristics... characteristics) { in of() argument
304 Objects.requireNonNull(characteristics); in of()
306 if (characteristics.length > 0) { in of()
308 Collections.addAll(cs, characteristics); in of()
DStreamSupport.java108 int characteristics, in stream() argument
112 StreamOpFlag.fromCharacteristics(characteristics), in stream()
176 int characteristics, in intStream() argument
179 StreamOpFlag.fromCharacteristics(characteristics), in intStream()
244 int characteristics, in longStream() argument
247 StreamOpFlag.fromCharacteristics(characteristics), in longStream()
312 int characteristics, in doubleStream() argument
315 StreamOpFlag.fromCharacteristics(characteristics), in doubleStream()
DStreamOpFlag.java779 int characteristics = spliterator.characteristics(); in fromCharacteristics() local
780 if ((characteristics & Spliterator.SORTED) != 0 && spliterator.getComparator() != null) { in fromCharacteristics()
783 return characteristics & SPLITERATOR_CHARACTERISTICS_MASK & ~Spliterator.SORTED; in fromCharacteristics()
786 return characteristics & SPLITERATOR_CHARACTERISTICS_MASK; in fromCharacteristics()
797 public static int fromCharacteristics(int characteristics) { in fromCharacteristics() argument
798 return characteristics & SPLITERATOR_CHARACTERISTICS_MASK; in fromCharacteristics()
DCollectors.java202 private final Set<Characteristics> characteristics;
208 Set<Characteristics> characteristics) {
213 this.characteristics = characteristics;
219 Set<Characteristics> characteristics) {
220 this(supplier, accumulator, combiner, castingIdentity(), characteristics);
244 public Set<Characteristics> characteristics() {
245 return characteristics;
472 downstream.characteristics());
522 downstream.characteristics());
571 downstream.characteristics());
[all …]
DStreams.java119 public int characteristics() { in characteristics() method in Streams.RangeIntSpliterator
242 public int characteristics() { in characteristics() method in Streams.RangeLongSpliterator
315 public int characteristics() { in characteristics() method in Streams.AbstractStreamBuilderImpl
752 public int characteristics() { in characteristics() method in Streams
755 return aSpliterator.characteristics() & bSpliterator.characteristics() in characteristics()
760 return bSpliterator.characteristics(); in characteristics()
DStreamSpliterators.java234 public final int characteristics() {
248 c |= (spliterator.characteristics() & (Spliterator.SIZED | Spliterator.SUBSIZED));
538 public int characteristics() { in characteristics() method in StreamSpliterators.AbstractWrappingSpliterator.DelegatingSpliterator
539 return get().characteristics(); in characteristics()
683 public int characteristics() { in characteristics() method in StreamSpliterators.AbstractWrappingSpliterator.SliceSpliterator
684 return s.characteristics(); in characteristics()
988 public final int characteristics() { in characteristics() method in StreamSpliterators.AbstractWrappingSpliterator.UnorderedSliceSpliterator
989 return s.characteristics() & in characteristics()
1307 public int characteristics() { in characteristics() method in StreamSpliterators.AbstractWrappingSpliterator.DistinctSpliterator
1308 return (s.characteristics() & ~(Spliterator.SIZED | Spliterator.SUBSIZED | in characteristics()
[all …]
DReferencePipeline.java699 && (collector.characteristics().contains(Collector.Characteristics.CONCURRENT))
700 … && (!isOrdered() || collector.characteristics().contains(Collector.Characteristics.UNORDERED))) {
708 return collector.characteristics().contains(Collector.Characteristics.IDENTITY_FINISH)
/libcore/ojluni/src/test/java/util/concurrent/tck/
DLinkedBlockingQueue8Test.java65 int characteristics = s.characteristics(); in testSpliterator_characteristics() local
69 assertEquals(required, characteristics & required); in testSpliterator_characteristics()
71 assertEquals(0, characteristics in testSpliterator_characteristics()
DLinkedBlockingDeque8Test.java65 int characteristics = s.characteristics(); in testSpliterator_characteristics() local
69 assertEquals(required, characteristics & required); in testSpliterator_characteristics()
71 assertEquals(0, characteristics in testSpliterator_characteristics()
DArrayDeque8Test.java66 int characteristics = s.characteristics(); in testSpliterator_characteristics() local
71 assertEquals(required, characteristics & required); in testSpliterator_characteristics()
73 assertEquals(0, characteristics in testSpliterator_characteristics()
/libcore/luni/src/test/java/libcore/java/util/
DSpliteratorsTest.java54 assertEquals(Spliterator.SIZED | Spliterator.SUBSIZED, empty.characteristics()); in testEmptyIntSpliterator()
67 assertEquals(Spliterator.SIZED | Spliterator.SUBSIZED, empty.characteristics()); in testEmptyRefSpliterator()
84 assertEquals(Spliterator.SIZED | Spliterator.SUBSIZED, empty.characteristics()); in testEmptyLongSpliterator()
101 assertEquals(Spliterator.SIZED | Spliterator.SUBSIZED, empty.characteristics()); in testEmptyDoubleSpliterator()
893 int characteristics = Spliterator.ORDERED; in testAbstractDoubleSpliterator_smallSize() local
895 characteristics); in testAbstractDoubleSpliterator_smallSize()
897 assertEquals(spliterator.characteristics(), characteristics); in testAbstractDoubleSpliterator_smallSize() local
919 int characteristics = Spliterator.ORDERED | Spliterator.SIZED; in testAbstractDoubleSpliterator_largeSize() local
921 characteristics); in testAbstractDoubleSpliterator_largeSize()
923 assertEquals(spliterator.characteristics(), characteristics | Spliterator.SUBSIZED); in testAbstractDoubleSpliterator_largeSize()
[all …]
DHashMapTest.java104 keys.spliterator().characteristics()); in test_spliterator_keySet()
128 assertEquals(Spliterator.SIZED, values.spliterator().characteristics()); in test_spliterator_values()
137 m.entrySet().spliterator().characteristics()); in test_spliterator_entrySet()
DSpliteratorTest.java61 public int characteristics() { in characteristics() method in SpliteratorTest.PrimitiveIntegerSpliterator
DLinkedHashMapTest.java424 keys.spliterator().characteristics()); in test_spliterator_keySet()
452 values.spliterator().characteristics()); in test_spliterator_values()
464 m.entrySet().spliterator().characteristics()); in test_spliterator_entrySet()
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
DTestData.java136 int characteristics = Spliterator.SIZED | Spliterator.ORDERED; in ofNode() local
138 … n -> StreamSupport.intStream(n::spliterator, characteristics, false), in ofNode()
139 … n -> StreamSupport.intStream(n::spliterator, characteristics, true), in ofNode()
167 int characteristics = Spliterator.SIZED | Spliterator.ORDERED; in ofNode() local
169 … n -> StreamSupport.longStream(n::spliterator, characteristics, false), in ofNode()
170 … n -> StreamSupport.longStream(n::spliterator, characteristics, true), in ofNode()
198 int characteristics = Spliterator.SIZED | Spliterator.ORDERED; in ofNode() local
200 … n -> StreamSupport.doubleStream(n::spliterator, characteristics, false), in ofNode()
201 … n -> StreamSupport.doubleStream(n::spliterator, characteristics, true), in ofNode()
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
DTestData.java135 int characteristics = Spliterator.SIZED | Spliterator.ORDERED; in ofNode() local
137 … n -> StreamSupport.intStream(n::spliterator, characteristics, false), in ofNode()
138 … n -> StreamSupport.intStream(n::spliterator, characteristics, true), in ofNode()
166 int characteristics = Spliterator.SIZED | Spliterator.ORDERED; in ofNode() local
168 … n -> StreamSupport.longStream(n::spliterator, characteristics, false), in ofNode()
169 … n -> StreamSupport.longStream(n::spliterator, characteristics, true), in ofNode()
197 int characteristics = Spliterator.SIZED | Spliterator.ORDERED; in ofNode() local
199 … n -> StreamSupport.doubleStream(n::spliterator, characteristics, false), in ofNode()
200 … n -> StreamSupport.doubleStream(n::spliterator, characteristics, true), in ofNode()
/libcore/ojluni/annotations/hiddenapi/java/util/
DRandom.java233 public int characteristics() { in characteristics() method in Random.RandomDoublesSpliterator
287 public int characteristics() { in characteristics() method in Random.RandomIntsSpliterator
342 public int characteristics() { in characteristics() method in Random.RandomLongsSpliterator
DArrayDeque.java282 public int characteristics() { in characteristics() method in ArrayDeque.DeqSpliterator
DPriorityQueue.java261 public int characteristics() { in characteristics() method in PriorityQueue.PriorityQueueSpliterator
DHashMap.java359 public int characteristics() { in characteristics() method in HashMap.EntrySpliterator
492 public int characteristics() { in characteristics() method in HashMap.KeySpliterator
669 public int characteristics() { in characteristics() method in HashMap.ValueSpliterator
/libcore/ojluni/src/main/java/java/nio/
DCharBufferSpliterator.java93 public int characteristics() { in characteristics() method in CharBufferSpliterator
/libcore/ojluni/src/main/java/java/lang/
DClassLoader.java1495 int characteristics = Spliterator.NONNULL | Spliterator.IMMUTABLE; in resources() local
1499 getResources(name).asIterator(), characteristics); in resources()
1504 return StreamSupport.stream(si, characteristics, false); in resources()
/libcore/luni/src/test/java/libcore/java/util/stream/
DCollectorsTest.java90 assertTrue(sqSumCollector.characteristics().contains(Collector.Characteristics.UNORDERED)); in collectorOf()

1234