Enum CommandArgPrefixes

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      POSIX
      Prefixes for command line arguments commonly used on POSIX conforming systems.
      WINDOWS
      Prefixes for command line arguments commonly used on Windows based systems.
    • Enum Constant Detail

      • WINDOWS

        public static final CommandArgPrefixes WINDOWS
        Prefixes for command line arguments commonly used on Windows based systems.
      • POSIX

        public static final CommandArgPrefixes POSIX
        Prefixes for command line arguments commonly used on POSIX conforming systems.
    • Method Detail

      • values

        public static CommandArgPrefixes[] 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 (CommandArgPrefixes c : CommandArgPrefixes.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static CommandArgPrefixes 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
      • toPrefixes

        public java.lang.String[] toPrefixes​()
        Returns an array with all String prefixes as of CommandArgPrefix.getPrefix() defined by this enumeration.
        Returns:
        The array with the according prefixes.