Enum Util.OS

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

    public static enum Util.OS
    extends java.lang.Enum<Util.OS>
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private OS()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.String[] getOpenUrlArguments​(java.net.URL p_195643_1_)  
      void openFile​(java.io.File p_195641_1_)  
      void openUri​(java.lang.String p_195640_1_)  
      void openUri​(java.net.URI p_195642_1_)  
      void openUrl​(java.net.URL p_195639_1_)  
      static Util.OS valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static Util.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

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

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

      • LINUX

        public static final Util.OS LINUX
      • SOLARIS

        public static final Util.OS SOLARIS
      • WINDOWS

        public static final Util.OS WINDOWS
      • OSX

        public static final Util.OS OSX
      • UNKNOWN

        public static final Util.OS UNKNOWN
    • Constructor Detail

      • OS

        private OS()
    • Method Detail

      • values

        public static Util.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 (Util.OS c : Util.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 Util.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
      • openUrl

        public void openUrl​(java.net.URL p_195639_1_)
      • openUri

        public void openUri​(java.net.URI p_195642_1_)
      • openFile

        public void openFile​(java.io.File p_195641_1_)
      • getOpenUrlArguments

        protected java.lang.String[] getOpenUrlArguments​(java.net.URL p_195643_1_)
      • openUri

        public void openUri​(java.lang.String p_195640_1_)