Class SelectCommand<K>

java.lang.Object
edu.wpi.first.wpilibj2.command.Command
edu.wpi.first.wpilibj2.command.SelectCommand<K>
Type Parameters:
K - The type of key used to select the command
All Implemented Interfaces:
Sendable

public class SelectCommand<K>
extends Command
A command composition that runs one of a selection of commands using a selector and a key to command mapping.

The rules for command compositions apply: command instances that are passed to it cannot be added to any other composition or scheduled individually, and the composition requires all subsystems its components require.

This class is provided by the NewCommands VendorDep