Enum Class ArgsPrefixes

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

public enum ArgsPrefixes extends Enum<ArgsPrefixes>
This enumeration groups ArgsPrefix by platform.
  • Enum Constant Details

    • WINDOWS

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

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

    • values

      public static ArgsPrefixes[] 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 ArgsPrefixes 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 ArgsPrefix[] getCommandArgPrefixes()
      Returns the related ArgsPrefix elements.
      Returns:
      The according ArgsPrefix elements.
    • toPrefixes

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