java.lang.Object
org.apache.johnzon.websocket.internal.lazy.LazySupplier<T>
All Implemented Interfaces:
Supplier<T>

public class LazySupplier<T> extends Object implements Supplier<T>
  • Field Details

    • delegate

      private Supplier<T> delegate
    • instance

      private volatile T instance
  • Constructor Details

    • LazySupplier

      public LazySupplier(Supplier<T> provider)
  • Method Details

    • get

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

      public T getInstance()