- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for ofNullable (0.12 sec)
-
guava/src/com/google/common/graph/AbstractValueGraph.java
} }; } @Override public Optional<V> edgeValue(N nodeU, N nodeV) { return Optional.ofNullable(edgeValueOrDefault(nodeU, nodeV, null)); } @Override public Optional<V> edgeValue(EndpointPair<N> endpoints) { return Optional.ofNullable(edgeValueOrDefault(endpoints, null)); } @Override public final boolean equals(@CheckForNull Object obj) {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Apr 17 13:59:28 UTC 2023 - 4.3K bytes - Viewed (0) -
guava/src/com/google/common/base/Optional.java
* reference; otherwise returns {@link Optional#absent}. * * <p><b>Comparison to {@code java.util.Optional}:</b> this method is equivalent to Java 8's * {@code Optional.ofNullable}. */ public static <T> Optional<T> fromNullable(@CheckForNull T nullableReference) { return (nullableReference == null) ? Optional.<T>absent() : new Present<T>(nullableReference); } /**
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Apr 01 16:15:01 UTC 2024 - 14.6K bytes - Viewed (0) -
guava/src/com/google/common/collect/MoreCollectors.java
throw multiples(true); } return this; } } Optional<Object> getOptional() { if (extras.isEmpty()) { return Optional.ofNullable(element); } else { throw multiples(false); } } Object getElement() { if (element == null) { throw new NoSuchElementException();
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Dec 13 02:09:05 UTC 2022 - 5.4K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Optional.java
* reference; otherwise returns {@link Optional#absent}. * * <p><b>Comparison to {@code java.util.Optional}:</b> this method is equivalent to Java 8's * {@code Optional.ofNullable}. */ public static <T> Optional<T> fromNullable(@CheckForNull T nullableReference) { return (nullableReference == null) ? Optional.<T>absent() : new Present<T>(nullableReference); } Optional() {}
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Apr 01 16:15:01 UTC 2024 - 13K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/MoreCollectors.java
} } @IgnoreJRERequirement // see enclosing class (whose annotation Animal Sniffer ignores here...) Optional<Object> getOptional() { if (extras.isEmpty()) { return Optional.ofNullable(element); } else { throw multiples(false); } } Object getElement() { if (element == null) { throw new NoSuchElementException();
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Sun Jun 02 13:36:19 UTC 2024 - 5.7K bytes - Viewed (0) -
guava/src/com/google/common/graph/AbstractNetwork.java
return incidentNodes(edge).adjacentNode(nodePresent).equals(nodeToCheck); } }; } @Override public Optional<E> edgeConnecting(N nodeU, N nodeV) { return Optional.ofNullable(edgeConnectingOrNull(nodeU, nodeV)); } @Override public Optional<E> edgeConnecting(EndpointPair<N> endpoints) { validateEndpoints(endpoints);
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Mar 13 18:17:09 UTC 2024 - 10.4K bytes - Viewed (0)