public abstract class AbstractOptions extends Object
AbstractOption,
AbstractOptionValue| Modifier | Constructor and Description |
|---|---|
protected |
AbstractOptions(AbstractOptions baseOptions,
AbstractOptions options)
Creates a new instance by merging two options.
|
protected |
AbstractOptions(Function<T,T> valueFilter,
AbstractOptions baseOptions,
Iterable<T> values)
Creates a new instance.
|
protected |
AbstractOptions(Function<T,T> valueFilter,
AbstractOptions baseOptions,
T... values)
Creates a new instance.
|
protected |
AbstractOptions(Function<T,T> valueFilter,
Iterable<T> values)
Creates a new instance.
|
protected |
AbstractOptions(Function<T,T> valueFilter,
T... values)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected <K extends AbstractOption<?>,V extends AbstractOptionValue<K,?>> |
asMap0()
|
protected <O extends AbstractOption<V>,V> |
get0(AbstractOption<V> option)
Returns the value of the specified
option. |
protected <O extends AbstractOption<V>,V> |
getOrElse0(O option,
V defaultValue)
Returns the value of the specified
option. |
protected <O extends AbstractOption<V>,V> |
getOrNull0(AbstractOption<V> option)
Returns the value of the specified
option. |
String |
toString() |
@SafeVarargs protected AbstractOptions(Function<T,T> valueFilter, T... values)
T - the type of the AbstractOptionValuevalueFilter - the Function to apply to the elements of the specified valuesvalues - the option valuesprotected AbstractOptions(Function<T,T> valueFilter, Iterable<T> values)
T - the type of the AbstractOptionValuevalueFilter - the Function to apply to the elements of the specified valuesvalues - the option values@SafeVarargs protected AbstractOptions(Function<T,T> valueFilter, AbstractOptions baseOptions, T... values)
T - the type of the AbstractOptionValuevalueFilter - the Function to apply to the elements of the specified valuesbaseOptions - the base options to mergevalues - the option valuesprotected AbstractOptions(Function<T,T> valueFilter, AbstractOptions baseOptions, Iterable<T> values)
T - the type of the AbstractOptionValuevalueFilter - the Function to apply to the elements of the specified valuesbaseOptions - the base options to mergevalues - the option valuesprotected AbstractOptions(AbstractOptions baseOptions, AbstractOptions options)
baseOptions - the base options to mergeoptions - the additional options to mergeprotected final <O extends AbstractOption<V>,V> V get0(AbstractOption<V> option)
option.O - the type of the optionV - the type of the valueNoSuchElementException - if the specified option does not have a value.protected final <O extends AbstractOption<V>,V> V getOrNull0(AbstractOption<V> option)
option.O - the type of the optionV - the type of the valueprotected final <O extends AbstractOption<V>,V> V getOrElse0(O option, V defaultValue)
option.O - the type of the optionV - the type of the valueoption. defaultValue if there's no such option.protected final <K extends AbstractOption<?>,V extends AbstractOptionValue<K,?>> Map<K,V> asMap0()
K - the type of the optionsV - the type of the option valuesCopyright © 2020 LeanCloud. All rights reserved.