Interface OnlyIf<T extends OnlyIf<T>>

All Superinterfaces:
Self<T>
All Known Implementing Classes:
AppAssistant.Builder, AppConfiguration.AppConfigurationBuilder, AppDef, CheckboxBuilder, FieldGroupBuilder, FormlyBuilder, InputBuilder, OptionBuilder, RangeBuilder, ReorderArrayBuilder, RepeatBuilder, SelectBuilder, SelectGroupBuilder, TextBuilder, ValidatorConfig.MapBuilder

public interface OnlyIf<T extends OnlyIf<T>> extends Self<T>
  • Method Summary

    Modifier and Type
    Method
    Description
    default T
    onlyIf(boolean expression, Consumer<T> consumer)
    Only executes the given consumer if the expression is true.

    Methods inherited from interface io.openems.edge.core.appmanager.Self

    self
  • Method Details

    • onlyIf

      default T onlyIf(boolean expression, Consumer<T> consumer)
      Only executes the given consumer if the expression is true.
      Parameters:
      expression - the expression
      consumer - the Consumer to execute
      Returns:
      Self.self()