Interface SignalMapper<T extends @Nullable Object,R extends @Nullable Object>

Type Parameters:
T - the input signal type
R - the output signal type
All Superinterfaces:
Serializable
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 SignalMapper<T extends @Nullable Object,R extends @Nullable Object> extends Serializable
Transforms a signal value into another value, creating a derived signal. The transformation is applied every time the signal value is read.

The mapper can access other signal values during transformation, making the resulting signal depend on those signals as well.

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    map(T value)
    Applies this mapper to transform a signal value.
  • Method Details

    • map

      R map(T value)
      Applies this mapper to transform a signal value.
      Parameters:
      value - the input value
      Returns:
      the transformed value