Class PrintCommand

  • All Implemented Interfaces:
    Sendable, AutoCloseable

    public class PrintCommand
    extends InstantCommand
    A PrintCommand is a command which prints out a string when it is initialized, and then immediately finishes. It is useful if you want a CommandGroup to print out a string when it reaches a certain point.
    • Constructor Detail

      • PrintCommand

        public PrintCommand​(String message)
        Instantiates a PrintCommand which will print the given message when it is run.
        message - the message to print
    • Method Detail

      • initialize

        protected void initialize()
        Description copied from class: Command
        The initialize method is called the first time this Command is run after being started.
        initialize in class Command