MCPcopy
hub / github.com/google/guava / absent

Method absent

guava/src/com/google/common/base/Optional.java:96–98  ·  view source on GitHub ↗

Returns an {@code Optional} instance with no contained reference. <p><b>Comparison to {@code java.util.Optional}:</b> this method is equivalent to Java 8's {@code Optional.empty}.

()

Source from the content-addressed store, hash-verified

94 * {@code Optional.empty}.
95 */
96 public static <T> Optional<T> absent() {
97 return Absent.withType();
98 }
99
100 /**
101 * Returns an {@code Optional} instance containing the given non-null reference. To have {@code

Callers 15

tryFindMethod · 0.95
firstMethod · 0.95
lastMethod · 0.95
sizeIfKnownMethod · 0.95
sizeIfKnownMethod · 0.95
sizeIfKnownMethod · 0.95
sizeIfKnownMethod · 0.95
sizeIfKnownMethod · 0.95
lengthIfKnownMethod · 0.95
lengthIfKnownMethod · 0.95
transformMethod · 0.95
getEnumIfPresentMethod · 0.95

Calls 1

withTypeMethod · 0.95

Tested by 15

addEntriesMethod · 0.76
testToJavaUtil_staticMethod · 0.76
testFromJavaUtilMethod · 0.76
testAbsentMethod · 0.76
testFromNullable_nullMethod · 0.76
testIsPresent_noMethod · 0.76
testGet_absentMethod · 0.76
testOr_t_absentMethod · 0.76