Interface AbstractSignal.ResultConverter<T extends @Nullable Object>

Type Parameters:
T - the result value type
All Superinterfaces:
Serializable
Enclosing class:
AbstractSignal<T extends @Nullable Object>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface protected static interface AbstractSignal.ResultConverter<T extends @Nullable Object> extends Serializable
Converts a command result into a specific value type.
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable T
    Converts an accepted command result into a result value.
  • Method Details

    • convert

      @Nullable T convert(CommandResult.Accept accept)
      Converts an accepted command result into a result value.
      Parameters:
      accept - the accepted command result, not null
      Returns:
      the converted value, may be null