| 限定符和类型 | 方法和说明 |
|---|---|
T |
get() |
void |
ifPresent(Consumer<? super T> consumer) |
static <T,A,R extends T> |
of(Class<T> type,
Function<A,R> loader,
A arg) |
static <T,R extends T> |
of(Class<T> type,
Supplier<R> loader) |
static <T,A> LazyLoader<T> |
of(Function<A,T> loader,
A arg) |
static <T> LazyLoader<T> |
of(Supplier<T> loader) |
T |
orElse(T defaultValue) |
T |
orElseGet(Supplier<? extends T> other) |
public static <T> LazyLoader<T> of(Supplier<T> loader)
public static <T,A> LazyLoader<T> of(Function<A,T> loader, A arg)
Copyright © 2024. All rights reserved.