Class LazySupplier<T>

    • Field Detail

      • instance

        private volatile T instance
    • Constructor Detail

      • LazySupplier

        public LazySupplier​(Supplier<T> provider)
    • Method Detail

      • get

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

        public T getInstance()