|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ops4j.pax.exam.OptionUtils
public class OptionUtils
Utility methods related to Options.
| Method Summary | ||
|---|---|---|
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
|
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. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||