Home
last modified time | relevance | path

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/
DIntReduceTest.java41 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()
DMinMaxTest.java70 assertEquals(1, IntStream.range(1, 1001).min().getAsInt()); in testIntMinMax()
71 assertEquals(1000, IntStream.range(1, 1001).max().getAsInt()); in testIntMinMax()
DRangeTest.java143 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()
DFindFirstOpTest.java92 assertEquals(i.nextInt(), r.getAsInt()); in exerciseIntStream()
DFindAnyOpTest.java101 int r = or.getAsInt(); in exerciseIntStream()
/libcore/ojluni/src/main/java/java/util/
DOptionalInt.java112 public int getAsInt() { in getAsInt() method in OptionalInt
162 return isPresent ? value : other.getAsInt(); in orElseGet()
/libcore/ojluni/src/main/java/java/util/function/
DIntSupplier.java48 int getAsInt(); in getAsInt() method
/libcore/luni/src/test/java/libcore/java/util/
DOptionalIntTest.java35 assertEquals(56, OptionalInt.of(56).getAsInt()); in testGet()
38 OptionalInt.empty().getAsInt(); in testGet()
/libcore/ojluni/src/main/java/java/util/stream/
DStreamSpliterators.java1381 action.accept(s.getAsInt()); in tryAdvance()