Class Ref<T>

java.lang.Object
org.jsignal.rx.Ref<T>
All Implemented Interfaces:
Consumer<T>, Supplier<T>

public class Ref<T> extends Object implements Supplier<T>, Consumer<T>
  • Constructor Details

    • Ref

      public Ref()
    • Ref

      public Ref(T ref)
  • Method Details

    • get

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

      public void accept(T ref)
      Specified by:
      accept in interface Consumer<T>