Interface Console


@NonNullByDefault public interface Console
This interface must be implemented by consoles which want to use the ConsoleInterpreter. It allows basic output commands.
Author:
Kai Kreuzer - Initial contribution
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    default void
    printf(String format, Object... args)
     
    void
     
    void
    usage output is treated differently from other output as it might differ between different kinds of consoles
  • Method Details

    • printf

      default void printf(String format, Object... args)
    • print

      void print(String s)
    • println

      void println(String s)
    • printUsage

      void printUsage(String s)
      usage output is treated differently from other output as it might differ between different kinds of consoles
      Parameters:
      s - the main usage string (console independent)