| 程序包 | 说明 |
|---|---|
| net.hasor.cobble.supplier |
各种类型的Provider接口工具。
|
| 限定符和类型 | 方法和说明 |
|---|---|
default Provider<T> |
Provider.asLoader() |
default Provider<T> |
Provider.asSingle() |
default Provider<T> |
Provider.asThread() |
static <T> Provider<T> |
Provider.of(Callable<T> callable) |
static <T> Provider<T> |
Provider.of(Supplier<T> supplier) |
static <T> Provider<T> |
Provider.of(T instance) |
static <V,T extends V> |
Provider.of2(Callable<T> callable) |
static <V,T extends V> |
Provider.of2(Supplier<T> supplier) |
static <V,T extends V> |
Provider.of2(T instance) |
Copyright © 2021–2022. All rights reserved.