Searched refs:teeSum (Results 1 – 2 of 2) sorted by relevance
58 long[] teeSum = new long[1]; in testTee() local59 …long sum = LongStream.range(1, 10).filter(i -> i % 2 == 0).peek(i -> { teeSum[0] = teeSum[0] + i; … in testTee()60 assertEquals(teeSum[0], sum); in testTee()
58 int[] teeSum = new int[1]; in testTee() local59 …long sum = IntStream.range(1, 10).filter(i -> i % 2 == 0).peek(i -> { teeSum[0] = teeSum[0] + i; }… in testTee()60 assertEquals(teeSum[0], sum); in testTee()