Enum Os

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Os>

    public enum Os
    extends java.lang.Enum<Os>
    • Enum Constant Detail

      • ANDROID

        public static final Os ANDROID
      • DARWIN

        public static final Os DARWIN
      • DRAGONFLY

        public static final Os DRAGONFLY
      • FREEBSD

        public static final Os FREEBSD
      • LINUX

        public static final Os LINUX
      • NACL

        public static final Os NACL
      • NETBSD

        public static final Os NETBSD
      • OPENBSD

        public static final Os OPENBSD
      • PLAN9

        public static final Os PLAN9
      • SOLARIS

        public static final Os SOLARIS
      • WINDOWS

        public static final Os WINDOWS
      • ZOS

        public static final Os ZOS
    • Method Detail

      • values

        public static 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 (Os c : 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 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
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Enum<Os>
      • exeExtension

        public java.lang.String exeExtension()
      • archiveExtension

        public java.lang.String archiveExtension()
      • getHostOs

        public static Os getHostOs()
      • of

        public static Os of​(java.lang.String lowercase)