Interface Cb<T>

All Superinterfaces:
Serializable, SerializableLambda
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface Cb<T> extends SerializableLambda
Represents a java8 method reference to a zero-argument method from a given component implementation class.

The type of the class on which the callback is invoked on is represented by the T generic parameter.

Author:
Felix Project Team
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(T t)
    Invokes the callback method on the given component implementation instance.
    default Cb<T>
    andThen(Cb<? super T> after)
     
  • Method Details

    • accept

      void accept(T t)
      Invokes the callback method on the given component implementation instance.
      Parameters:
      t - the component implementation instance the callback is invoked on.
    • andThen

      default Cb<T> andThen(Cb<? super T> after)