public final class Singleton extends Object
| 构造器和说明 |
|---|
Singleton() |
public static <T> T get(String key)
T - key - public static <T> T get(String key, Supplier<T> supplier)
When empty, build a singleton object through supplier and put it into the container.
T - key - supplier - public static void put(Object value)
value - Copyright © 2022. All rights reserved.