Enum Class CommandArgPrefixes

java.lang.Object
java.lang.Enum<CommandArgPrefixes>
org.refcodes.data.CommandArgPrefixes
All Implemented Interfaces:
Serializable, Comparable<CommandArgPrefixes>, Constable

public enum CommandArgPrefixes extends Enum<CommandArgPrefixes>
This enumeration groups CommandArgPrefix by platform.
  • Enum Constant Details

    • 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 Details

    • values

      public static CommandArgPrefixes[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static CommandArgPrefixes valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getCommandArgPrefixes

      public CommandArgPrefix[] getCommandArgPrefixes()
      Returns the related CommandArgPrefix elements.
      Returns:
      The according CommandArgPrefix elements.
    • toPrefixes

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