Searched refs:counting (Results 1 – 7 of 7) sorted by relevance
/libcore/luni/src/test/java/libcore/java/util/stream/ |
D | CollectorsTest.java | 24 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/ |
D | CollectorsTest.java | 775 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)));
|
D | CountTest.java | 76 terminal(s -> s, s -> s.collect(Collectors.counting())). in testOps()
|
/libcore/ojluni/annotations/flagged_api/java/util/stream/ |
D | Collectors.annotated.java | 57 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/ |
D | ByteBufferAs-X-Buffer.java.template | 303 … // 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/ |
D | Collectors.java | 627 counting() {
|
/libcore/api/ |
D | current.txt | 18196 method public static <T> java.util.stream.Collector<T,?,java.lang.Long> counting();
|