Class PassingHolder<T>

  • Type Parameters:
    T - type of object held
    All Implemented Interfaces:
    Consumer<T>

    public class PassingHolder<T>
    extends Holder<T>
    Accepts (maybe repeatedly) a value and - on request - passes it to specified Consumer.
    • Constructor Detail

      • PassingHolder

        public PassingHolder​(@Nullable
                             @Nullable Consumer<T> ultimateConsumer)
    • Method Detail

      • passValue

        public void passValue()
        Passes a value to the consumer (repeatedly if needed).