Home
last modified time | relevance | path

Searched refs:getAsLong (Results 1 – 8 of 8) sorted by relevance

/libcore/ojluni/src/main/java/java/util/
DOptionalLong.java112 public long getAsLong() { in getAsLong() method in OptionalLong
162 return isPresent ? value : other.getAsLong(); in orElseGet()
/libcore/ojluni/src/main/java/java/util/function/
DLongSupplier.java48 long getAsLong(); in getAsLong() method
/libcore/luni/src/test/java/libcore/java/util/
DOptionalLongTest.java35 assertEquals(56, OptionalLong.of(56).getAsLong()); in testGet()
38 OptionalLong.empty().getAsLong(); in testGet()
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DMinMaxTest.java83 assertEquals(1, LongStream.range(1, 1001).min().getAsLong()); in testLongMinMax()
84 assertEquals(1000, LongStream.range(1, 1001).max().getAsLong()); in testLongMinMax()
DRangeTest.java226 … long first = LongStream.iterate(0, i -> i + 1).filter(i -> i > 10000).findFirst().getAsLong(); in testLongInfiniteRangeFindFirst()
227 …irst, LongStream.iterate(0, i -> i + 1).parallel().filter(i -> i > 10000).findFirst().getAsLong()); in testLongInfiniteRangeFindFirst()
DFindFirstOpTest.java112 assertEquals(i.nextLong(), r.getAsLong()); in exerciseLongStream()
DFindAnyOpTest.java125 long r = or.getAsLong(); in exerciseLongStream()
/libcore/ojluni/src/main/java/java/util/stream/
DStreamSpliterators.java1406 action.accept(s.getAsLong()); in tryAdvance()