OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:OptionalLong
(Results
1 - 4
of
4
) sorted by null
/libcore/ojluni/src/main/java/java/util/
OptionalLong.java
44
public final class
OptionalLong
{
48
private static final
OptionalLong
EMPTY = new
OptionalLong
();
59
* @implNote generally only one empty instance, {@link
OptionalLong
#EMPTY},
62
private
OptionalLong
() {
68
* Returns an empty {@code
OptionalLong
} instance. No value is present for this
69
*
OptionalLong
.
76
* @return an empty {@code
OptionalLong
}.
78
public static
OptionalLong
empty() {
87
private
OptionalLong
(long value)
[
all
...]
/libcore/luni/src/test/java/libcore/java/util/
OptionalLongTest.java
23
import java.util.
OptionalLong
;
31
assertSame(
OptionalLong
.empty(),
OptionalLong
.empty());
35
assertEquals(56,
OptionalLong
.of(56).getAsLong());
38
OptionalLong
.empty().getAsLong();
45
assertTrue(
OptionalLong
.of(56).isPresent());
46
assertFalse(
OptionalLong
.empty().isPresent());
51
OptionalLong
.empty().ifPresent(alwaysFails);
55
OptionalLong
.of(56).ifPresent(recorder);
60
assertEquals(57,
OptionalLong
.empty().orElse(57))
[
all
...]
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
MinMaxTest.java
35
import java.util.
OptionalLong
;
81
assertEquals(LongStream.empty().min(),
OptionalLong
.empty());
82
assertEquals(LongStream.empty().max(),
OptionalLong
.empty());
/prebuilts/sdk/24/
android.jar
Completed in 685 milliseconds