public abstract static class AbstractMutableOptions.AbstractMutableOptionsBuilder<T extends AbstractMutableOptions,U extends AbstractMutableOptions.AbstractMutableOptionsBuilder<T,U,K>,K extends MutableOptionKey> extends Object
| Constructor and Description |
|---|
AbstractMutableOptionsBuilder() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Map<String,K> |
allKeys()
Get all of the possible keys
|
T |
build() |
protected abstract T |
build(String[] keys,
String[] values)
Construct a sub-class instance of
AbstractMutableOptions. |
U |
fromString(String keyStr,
String valueStr) |
protected boolean |
getBoolean(K key) |
protected double |
getDouble(K key) |
protected <N extends Enum<N>> |
getEnum(K key) |
protected int |
getInt(K key) |
protected int[] |
getIntArray(K key) |
protected long |
getLong(K key) |
protected abstract U |
self() |
protected U |
setBoolean(K key,
boolean value) |
protected U |
setDouble(K key,
double value) |
protected <N extends Enum<N>> |
setEnum(K key,
N value) |
protected U |
setInt(K key,
int value) |
protected U |
setIntArray(K key,
int[] value) |
protected U |
setLong(K key,
long value) |
protected abstract U self()
protected abstract Map<String,K> allKeys()
protected abstract T build(String[] keys, String[] values)
AbstractMutableOptions.keys - the keysvalues - the valuespublic T build()
protected double getDouble(K key) throws NoSuchElementException, NumberFormatException
protected long getLong(K key) throws NoSuchElementException, NumberFormatException
protected int getInt(K key) throws NoSuchElementException, NumberFormatException
protected boolean getBoolean(K key) throws NoSuchElementException, NumberFormatException
protected int[] getIntArray(K key) throws NoSuchElementException, NumberFormatException
protected <N extends Enum<N>> N getEnum(K key) throws NoSuchElementException, NumberFormatException
public U fromString(String keyStr, String valueStr) throws IllegalArgumentException
IllegalArgumentExceptionCopyright © 2021. All rights reserved.