Modifier and Type | Class and Description |
---|---|
static class |
Options.BooleanOption |
static class |
Options.ClassOption |
static class |
Options.FSDataInputStreamOption |
static class |
Options.FSDataOutputStreamOption |
static class |
Options.IntegerOption |
static class |
Options.LongOption |
static class |
Options.PathOption |
static class |
Options.ProgressableOption |
static class |
Options.StringOption |
Constructor and Description |
---|
Options() |
Modifier and Type | Method and Description |
---|---|
static <base,T extends base> |
getOption(Class<T> cls,
base[] opts)
Find the first option of the required class.
|
static <T> T[] |
prependOptions(T[] oldOpts,
T... newOpts)
Prepend some new options to the old options
|
public Options()
public static <base,T extends base> T getOption(Class<T> cls, base[] opts) throws IOException
T
- the static class to findbase
- the parent class of the arraycls
- the dynamic class to findopts
- the list of options to look throughIOException
public static <T> T[] prependOptions(T[] oldOpts, T... newOpts)
T
- the type of optionsoldOpts
- the old optionsnewOpts
- the new optionsCopyright © 2017 Apache Software Foundation. All Rights Reserved.