Class Singleton<T>

java.lang.Object
org.core.utils.Singleton<T>
All Implemented Interfaces:
Supplier<T>

public class Singleton<T> extends Object implements Supplier<T>
  • Constructor Details

    • Singleton

      public Singleton(Supplier<? extends T> getter)
  • Method Details

    • get

      public T get()
      Specified by:
      get in interface Supplier<T>