public class Options
extends java.lang.Object
| Modifier and Type | Class | 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 | Description |
|---|---|
Options() |
| Modifier and Type | Method | Description |
|---|---|---|
static <base,T extends base> |
getOption(java.lang.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 static <base,T extends base> T getOption(java.lang.Class<T> cls,
base[] opts)
throws java.io.IOException
T - the static class to findbase - the parent class of the arraycls - the dynamic class to findopts - the list of options to look throughjava.io.IOException - raised on errors performing I/O.public static <T> T[] prependOptions(T[] oldOpts,
T... newOpts)
T - the type of optionsoldOpts - the old optionsnewOpts - the new optionsCopyright © 2008–2025 Apache Software Foundation. All rights reserved.