Package com.linecorp.armeria.common.util
Class AbstractOptions<T extends AbstractOption<T,U,Object>,U extends AbstractOptionValue<U,T,Object>>
java.lang.Object
com.linecorp.armeria.common.util.AbstractOptions<T,U>
- Type Parameters:
T
- the type of the option.U
- the type of the option value holder.
- All Implemented Interfaces:
Iterable<U>
- Direct Known Subclasses:
ClientFactoryOptions
,ClientOptions
public abstract class AbstractOptions<T extends AbstractOption<T,U,Object>,U extends AbstractOptionValue<U,T,Object>>
extends Object
implements Iterable<U>
A set of configuration options and their respective values.
- See Also:
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractOptions
(AbstractOptions<T, U> baseOptions, Iterable<? extends AbstractOptionValue<?, ?, ?>> additionalValues) Creates a new instance.protected
AbstractOptions
(Iterable<? extends AbstractOptionValue<?, ?, ?>> values) Creates a new instance. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
AbstractOptions
Creates a new instance.- Parameters:
values
- the option values
-
AbstractOptions
protected AbstractOptions(AbstractOptions<T, U> baseOptions, Iterable<? extends AbstractOptionValue<?, ?, ?>> additionalValues) Creates a new instance.- Parameters:
baseOptions
- the base options to mergeadditionalValues
- the option values
-
-
Method Details