Class Env


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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean isLinuxOs()  
      static boolean isMacOs()  
      static boolean isTestEnv()  
      static boolean isWindowsOs()  
      static int osPageSize()
      Return the size in bytes of a OS memory page.
      static void setTestEnv​(boolean testEnv)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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()