Class Env


  • public final class Env
    extends Object
    Utility that detects various properties specific to the current runtime environment, such as JVM bitness and OS type.
    • Method Detail

      • osPageSize

        public static int osPageSize()
        Return the size in bytes of a OS memory page. This value will always be a power of two.
      • isTestEnv

        public static boolean isTestEnv()
      • setTestEnv

        public static void setTestEnv​(boolean testEnv)
      • isLinuxOs

        public static boolean isLinuxOs()
      • isMacOs

        public static boolean isMacOs()
      • isWindowsOs

        public static boolean isWindowsOs()