Package moblima.utils

Class Constants

java.lang.Object
moblima.utils.Constants

public class Constants extends Object
Global environment variables and debug mode toggle
Version:
1.0
Author:
SC2002 /SS11 Group 1
  • Field Details

    • DEBUG_MODE

      public static boolean DEBUG_MODE
      Debug flag
  • Method Details

    • getInstance

      public static Constants getInstance()
      Retrieves instance of Constants
      Returns:
      instance :current Constants instance
    • setDebugMode

      public static void setDebugMode(boolean isDebug)
      Configure debug mode
      Parameters:
      isDebug - :boolean
    • getEnv

      public static String getEnv(String envKey)
      Retrieves specific env key from loaded entries
      Parameters:
      envKey - :String
      Returns:
      String | null