Interface SystemProxy

All Known Implementing Classes:
SystemProxySystemImpl

interface SystemProxy
An interface proxyfying access to System functions.
Author:
Julb.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    exit(int status)
    Exits the program with the given code.
    getenv(String name)
    Gets the value of the given environment variable name.
    void
    Prints a line feed on STDOUT.
    <T> void
    println(T message)
    Prints a message on STDOUT.
  • Method Details

    • getenv

      String getenv(String name)
      Gets the value of the given environment variable name.
      Parameters:
      name - the name of the environment variable.
      Returns:
      the value of the environment variable, or null if not exists.
    • println

      void println()
      Prints a line feed on STDOUT.
    • println

      <T> void println(T message)
      Prints a message on STDOUT.
      Type Parameters:
      T - the message object type.
      Parameters:
      message - the message to print.
    • exit

      void exit(int status)
      Exits the program with the given code.
      Parameters:
      status - the status code.