Home
last modified time | relevance | path

Searched refs:counting (Results 1 – 7 of 7) sorted by relevance

/libcore/luni/src/test/java/libcore/java/util/stream/
DCollectorsTest.java24 import static java.util.stream.Collectors.counting;
45 long count = Stream.of(null, null, null).collect(counting()); in counting_countsNulls()
52 assertEquals(0L, (long) Stream.empty().collect(counting())); in counting_emptyStream()
57 long count = Stream.of(null, 1, 2, "").collect(counting()); in counting_nonEmptyStream()
68 .collect(counting()); in counting_largeStream()
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DCollectorsTest.java775 Collector<Integer, ?, Long> counting = Collectors.counting();
782 …<Integer, ?, Map.Entry<Long, Long>> sumAndCount = Collectors.teeing(summing, counting, Map::entry);
784 Collector<Integer, ?, Double> averaging = Collectors.teeing(summing, counting,
790 Collector<Integer, ?, String> countAndContent = Collectors.teeing(counting, joining,
808 new TeeingAssertion<>(summing, counting, Map::entry)));
DCountTest.java76 terminal(s -> s, s -> s.collect(Collectors.counting())). in testOps()
/libcore/ojluni/annotations/flagged_api/java/util/stream/
DCollectors.annotated.java57 public static <T> java.util.stream.Collector<T,?,java.lang.Long> counting() { throw new RuntimeExce… in counting() method in Collectors
/libcore/ojluni/src/main/java/java/nio/
DByteBufferAs-X-Buffer.java.template303 … // Use pos << $LG_BYTES_PER_VALUE$ instead of ix(pos) to avoid double counting of the offset
/libcore/ojluni/src/main/java/java/util/stream/
DCollectors.java627 counting() {
/libcore/api/
Dcurrent.txt18196 method public static <T> java.util.stream.Collector<T,?,java.lang.Long> counting();