public abstract static class AbstractMutableOptions.AbstractMutableOptionsBuilder<T extends AbstractMutableOptions,U extends AbstractMutableOptions.AbstractMutableOptionsBuilder<T,U,K>,K extends MutableOptionKey>
extends java.lang.Object
| Constructor and Description |
|---|
AbstractMutableOptionsBuilder() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract java.util.Map<java.lang.String,K> |
allKeys()
Get all of the possible keys
|
T |
build() |
protected abstract T |
build(java.lang.String[] keys,
java.lang.String[] values)
Construct a sub-class instance of
AbstractMutableOptions. |
U |
fromString(java.lang.String keyStr,
java.lang.String valueStr) |
protected boolean |
getBoolean(K key) |
protected double |
getDouble(K key) |
protected <N extends java.lang.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 java.lang.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 java.util.Map<java.lang.String,K> allKeys()
protected abstract T build(java.lang.String[] keys, java.lang.String[] values)
AbstractMutableOptions.keys - the keysvalues - the valuespublic T build()
protected double getDouble(K key) throws java.util.NoSuchElementException, java.lang.NumberFormatException
java.util.NoSuchElementExceptionjava.lang.NumberFormatExceptionprotected long getLong(K key) throws java.util.NoSuchElementException, java.lang.NumberFormatException
java.util.NoSuchElementExceptionjava.lang.NumberFormatExceptionprotected int getInt(K key) throws java.util.NoSuchElementException, java.lang.NumberFormatException
java.util.NoSuchElementExceptionjava.lang.NumberFormatExceptionprotected boolean getBoolean(K key) throws java.util.NoSuchElementException, java.lang.NumberFormatException
java.util.NoSuchElementExceptionjava.lang.NumberFormatExceptionprotected int[] getIntArray(K key) throws java.util.NoSuchElementException, java.lang.NumberFormatException
java.util.NoSuchElementExceptionjava.lang.NumberFormatExceptionprotected <N extends java.lang.Enum<N>> N getEnum(K key) throws java.util.NoSuchElementException, java.lang.NumberFormatException
java.util.NoSuchElementExceptionjava.lang.NumberFormatExceptionpublic U fromString(java.lang.String keyStr, java.lang.String valueStr) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException