Class OsUtil


  • public class OsUtil
    extends java.lang.Object
    Copied from RICO (https://github.com/rico-projects/rico)
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.String LINUX  
      private static java.lang.String WIN  
    • Constructor Summary

      Constructors 
      Constructor Description
      OsUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean isLinux()  
      private static boolean isOs​(java.lang.String osName)  
      static boolean isWindows()
      Returns true if we are on windows.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OsUtil

        public OsUtil()
    • Method Detail

      • isWindows

        public static boolean isWindows()
        Returns true if we are on windows.
        Returns:
        true if we are on windows.
      • isLinux

        public static boolean isLinux()
      • isOs

        private static boolean isOs​(java.lang.String osName)