Class AbstractOptionValue<T extends AbstractOptionValue<T,U,V>,U extends AbstractOption<U,T,V>,V>

java.lang.Object
com.linecorp.armeria.common.util.AbstractOptionValue<T,U,V>
Type Parameters:
T - the type of the option value holder.
U - the type of the option.
V - the type of the option value.
Direct Known Subclasses:
ClientFactoryOptionValue, ClientOptionValue

public abstract class AbstractOptionValue<T extends AbstractOptionValue<T,U,V>,U extends AbstractOption<U,T,V>,V> extends Object
A holder of a value of an AbstractOption.
See Also:
  • Constructor Details

    • AbstractOptionValue

      protected AbstractOptionValue(U option, V value)
      Creates a new instance with the specified option and value.
  • Method Details

    • option

      public final U option()
      Returns the option that this option value holder belongs to.
    • value

      public final V value()
      Returns the value of this option value holder has.
    • toString

      public final String toString()
      Overrides:
      toString in class Object