Searched refs:getAsInt (Results 1 – 9 of 9) sorted by relevance
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | IntReduceTest.java | 41 assertEquals(55, Arrays.stream(a).reduce(irPlus).getAsInt()); in testReduce() 43 assertEquals(10, Arrays.stream(a).reduce(irMax).getAsInt()); in testReduce() 44 assertEquals(1, Arrays.stream(a).reduce(irMin).getAsInt()); in testReduce() 49 assertEquals(110, Arrays.stream(a).map(irDoubler).reduce(irPlus).getAsInt()); in testReduce() 50 assertEquals(20, Arrays.stream(a).map(irDoubler).reduce(irMax).getAsInt()); in testReduce() 51 assertEquals(2, Arrays.stream(a).map(irDoubler).reduce(irMin).getAsInt()); in testReduce()
|
D | MinMaxTest.java | 70 assertEquals(1, IntStream.range(1, 1001).min().getAsInt()); in testIntMinMax() 71 assertEquals(1000, IntStream.range(1, 1001).max().getAsInt()); in testIntMinMax()
|
D | RangeTest.java | 143 int first = IntStream.iterate(0, i -> i + 1).filter(i -> i > 10000).findFirst().getAsInt(); in testIntInfiniteRangeFindFirst() 144 …(first, IntStream.iterate(0, i -> i + 1).parallel().filter(i -> i > 10000).findFirst().getAsInt()); in testIntInfiniteRangeFindFirst()
|
D | FindFirstOpTest.java | 92 assertEquals(i.nextInt(), r.getAsInt()); in exerciseIntStream()
|
D | FindAnyOpTest.java | 101 int r = or.getAsInt(); in exerciseIntStream()
|
/libcore/ojluni/src/main/java/java/util/ |
D | OptionalInt.java | 113 public int getAsInt() { in getAsInt() method in OptionalInt 163 return isPresent ? value : other.getAsInt(); in orElseGet()
|
/libcore/ojluni/src/main/java/java/util/function/ |
D | IntSupplier.java | 48 int getAsInt(); in getAsInt() method
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | OptionalIntTest.java | 35 assertEquals(56, OptionalInt.of(56).getAsInt()); in testGet() 38 OptionalInt.empty().getAsInt(); in testGet()
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | StreamSpliterators.java | 1381 action.accept(s.getAsInt()); in tryAdvance()
|