程序包 org.coodex.util

类 Singleton<T>

java.lang.Object
org.coodex.util.Singleton<T>

public class Singleton<T> extends Object
  • 方法详细资料

    • resetAll

      public static void resetAll()
      重置所有单例
    • with

      public static <T> Singleton<T> with(Supplier<T> supplier)
    • get

      public T get()
    • reset

      public void reset()
      重置单例