public interface Optionals
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> Optional<T> |
firstNonEmpty(Iterable<Supplier<Optional<T>>> suppliers)
Invokes the given Supplier s for Optional results one by one and returns the first non-empty one.
|
static <T> Optional<T> |
firstNonEmpty(Supplier<Optional<T>>... suppliers)
Invokes the given Supplier s for Optional results one by one and returns the first non-empty one.
|
@SafeVarargs static <T> Optional<T> firstNonEmpty(Supplier<Optional<T>>... suppliers)
Copyright © 2023 tan. All rights reserved.