Class SettableSupplier<T>

java.lang.Object
org.apache.druid.common.guava.SettableSupplier<T>
All Implemented Interfaces:
com.google.common.base.Supplier<T>, Supplier<T>

public class SettableSupplier<T> extends Object implements com.google.common.base.Supplier<T>
A settable Supplier. Not thread safe.
  • Constructor Details

    • SettableSupplier

      public SettableSupplier()
    • SettableSupplier

      public SettableSupplier(T obj)
  • Method Details

    • set

      public void set(T obj)
    • get

      public T get()
      Specified by:
      get in interface com.google.common.base.Supplier<T>
      Specified by:
      get in interface Supplier<T>