Class Holder<T>

java.lang.Object
org.eclipse.net4j.util.concurrent.Holder<T>
All Implemented Interfaces:
Consumer<T>, Supplier<T>

public final class Holder<T> extends Object implements Consumer<T>, Supplier<T>
Since:
3.16
Author:
Eike Stepper
  • Constructor Details

    • Holder

      public Holder(T element)
    • Holder

      public Holder()
  • Method Details

    • get

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

      public T set(T element)
    • accept

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