- All Implemented Interfaces:
Serializable
,Comparable<ArgsFilter>
,Constable
Enumeration declaring command line argument filter.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionString[]
fromFilter
(String[] aArgs) Filters the provided args by including the args matching this enumerations criteria.static String[]
fromFilter
(String[] aArgs, Pattern aArgsFilter) Filters the provided args by including the args matching the providedPattern
(opposite oftoFiltered(String[], Pattern)
.fromFilter
(List<String> aArgs) Filters the provided args by including the args matching this enumerations criteria.fromFilter
(List<String> aArgs, Pattern aArgsFilter) Filters the provided args by including the args matching the providedPattern
(opposite oftoFiltered(List, Pattern)
.Returns the argsPattern
used to filter (exclude) the according args.static ArgsFilter
toArgsFilter
(String aValue) Retrieves aArgsFilter
depending on the given string, ignoring the case as well as being graceful regarding "-" and "_",.String[]
toFiltered
(String[] aArgs) Filters the provided args by excluding (filtering) the args matching this enumerations criteria.static String[]
toFiltered
(String[] aArgs, Pattern aArgsFilter) Filters the provided args by excluding (filtering) the args matching the providedPattern
.toFiltered
(List<String> aArgs) Filters the provided args by excluding (filtering) the args matching this enumerations criteria.toFiltered
(List<String> aArgs, Pattern aArgsFilter) Filters the provided args by excluding (filtering) the args matching the providedPattern
.static ArgsFilter
Returns the enum constant of this class with the specified name.static ArgsFilter[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
D
Java system properties are to be filtered. -
D_XX
-
NONE
No arguments are filtered. -
XX
JVM command-line options that are specified with-XX:
are not checked for validity.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
fromFilter
Filters the provided args by including the args matching this enumerations criteria. (opposite oftoFiltered(List)
.- Parameters:
aArgs
- The args to be filtered.- Returns:
- The filtered args.
-
fromFilter
Filters the provided args by including the args matching this enumerations criteria. (opposite oftoFiltered(String[])
- Parameters:
aArgs
- The args to be filtered.- Returns:
- The filtered args.
-
getFilter
Returns the argsPattern
used to filter (exclude) the according args.- Returns:
- The according filter
Pattern
.
-
toFiltered
Filters the provided args by excluding (filtering) the args matching this enumerations criteria.- Parameters:
aArgs
- The args to be filtered.- Returns:
- The filtered args.
-
toFiltered
Filters the provided args by excluding (filtering) the args matching this enumerations criteria.- Parameters:
aArgs
- The args to be filtered.- Returns:
- The filtered args.
-
fromFilter
Filters the provided args by including the args matching the providedPattern
(opposite oftoFiltered(List, Pattern)
.- Parameters:
aArgs
- The args to be filtered.aArgsFilter
- ThePattern
to be used for filtering.- Returns:
- The filtered args.
-
fromFilter
Filters the provided args by including the args matching the providedPattern
(opposite oftoFiltered(String[], Pattern)
.- Parameters:
aArgs
- The args to be filtered.aArgsFilter
- ThePattern
to be used for filtering.- Returns:
- The filtered args.
-
toArgsFilter
Retrieves aArgsFilter
depending on the given string, ignoring the case as well as being graceful regarding "-" and "_",.- Parameters:
aValue
- The name of theArgsFilter
to be interpreted graceful.- Returns:
- The
ArgsFilter
being determined or null if none was found.
-
toFiltered
Filters the provided args by excluding (filtering) the args matching the providedPattern
.- Parameters:
aArgs
- The args to be filtered.aArgsFilter
- ThePattern
to be used for filtering.- Returns:
- The filtered args.
-
toFiltered
Filters the provided args by excluding (filtering) the args matching the providedPattern
.- Parameters:
aArgs
- The args to be filtered.aArgsFilter
- ThePattern
to be used for filtering.- Returns:
- The filtered args.
-