Searched defs:Optional (Results 1 - 1 of 1) sorted by relevance

/libcore/ojluni/src/main/java/java/util/
H A DOptional.java45 public final class Optional<T> { class
49 private static final Optional<?> EMPTY = new Optional<>();
59 * @implNote Generally only one empty instance, {@link Optional#EMPTY},
62 private Optional() { method in class:Optional
67 * Returns an empty {@code Optional} instance. No value is present for this
68 * Optional.
76 * @return an empty {@code Optional}
78 public static<T> Optional<T> empty() {
80 Optional<
90 private Optional(T value) { method in class:Optional
[all...]

Completed in 35 milliseconds