Enum NativeComm.OS

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<NativeComm.OS>
    Enclosing class:
    NativeComm

    public static enum NativeComm.OS
    extends java.lang.Enum<NativeComm.OS>
    Host operating system enum
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      linux
      Linux operating system
      macosx
      MacOSX operating system
      solaris
      Solaris/SunOS operating system
      unknown
      unknown operating system
      win32
      Windows 32-bit operating system
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static NativeComm.OS current
      current host operating system
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean isLinux()  
      static boolean isMacOSX()  
      static boolean isSolaris()  
      static boolean isWin32()  
      static NativeComm.OS valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static NativeComm.OS[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • win32

        public static final NativeComm.OS win32
        Windows 32-bit operating system
      • linux

        public static final NativeComm.OS linux
        Linux operating system
      • macosx

        public static final NativeComm.OS macosx
        MacOSX operating system
      • solaris

        public static final NativeComm.OS solaris
        Solaris/SunOS operating system
      • unknown

        public static final NativeComm.OS unknown
        unknown operating system
    • Field Detail

      • current

        public static final NativeComm.OS current
        current host operating system
    • Method Detail

      • values

        public static NativeComm.OS[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (NativeComm.OS c : NativeComm.OS.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static NativeComm.OS valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • isWin32

        public static boolean isWin32()
        Returns:
        true if running on windows operating system
      • isLinux

        public static boolean isLinux()
        Returns:
        true if running on linux operating system
      • isMacOSX

        public static boolean isMacOSX()
        Returns:
        true if running on macosx operating system
      • isSolaris

        public static boolean isSolaris()
        Returns:
        true if running on solaris operating system