Searched refs:getAsLong (Results 1 – 8 of 8) sorted by relevance
112 public long getAsLong() { in getAsLong() method in OptionalLong162 return isPresent ? value : other.getAsLong(); in orElseGet()
48 long getAsLong(); in getAsLong() method
35 assertEquals(56, OptionalLong.of(56).getAsLong()); in testGet()38 OptionalLong.empty().getAsLong(); in testGet()
83 assertEquals(1, LongStream.range(1, 1001).min().getAsLong()); in testLongMinMax()84 assertEquals(1000, LongStream.range(1, 1001).max().getAsLong()); in testLongMinMax()
226 … 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()
112 assertEquals(i.nextLong(), r.getAsLong()); in exerciseLongStream()
125 long r = or.getAsLong(); in exerciseLongStream()
1406 action.accept(s.getAsLong()); in tryAdvance()