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}.
()
| 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 |