Interface Composer<T extends Command<T>>

All Superinterfaces:
Function<T,T>, UnaryOperator<T>

public interface Composer<T extends Command<T>> extends UnaryOperator<T>
A command component and additional arguments operator.
  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    static <C extends Command<C>>
    Composer<C>
    Returns a command composer that always returns the same command instance.

    Methods inherited from interface java.util.function.Function

    andThen, apply, compose
  • Method Details

    • identity

      static <C extends Command<C>> Composer<C> identity()
      Returns a command composer that always returns the same command instance.
      Returns:
      a command composer that always returns the same command instance