| Modifier and Type | Method and Description |
|---|---|
static Option[] |
combine(Option[] options1,
Option... options2)
Combines two arrays of options in one array containing both provided arrays in order they are
provided.
|
static Option[] |
expand(Option... options)
Expand options to one level by expanding eventual
CompositeOption. |
static <T extends Option> |
filter(Class<T> optionType,
Option... options)
Filters the provided options by class returning an array of those option that are instance of
the provided class.
|
static Option[] |
remove(Class<? extends Option> optionType,
Option... options)
Removes from the provided options all options that are instance of the provided class,
returning the remaining options.
|
public static Option[] expand(Option... options)
CompositeOption. During this
process null options are eliminated.options - options to be expanded (can be null or an empty array)public static Option[] combine(Option[] options1, Option... options2)
options1 - array of options (can be null or empty array)options2 - array of options (can be null or empty array)public static <T extends Option> T[] filter(Class<T> optionType, Option... options)
expand(Option[]).T - type of desired optionsoptionType - class of the desired optionsoptions - options to be filtered (can be null or empty array)public static Option[] remove(Class<? extends Option> optionType, Option... options)
optionType - class of the desired options to be removedoptions - options to be filtered (can be null or empty array)Copyright © 2006–2017 OPS4J - Open Participation Software for Java. All rights reserved.