Class DynamicValues

java.lang.Object
org.apache.dubbo.common.url.component.param.DynamicValues
All Implemented Interfaces:
ParamValue

public class DynamicValues extends Object implements ParamValue
  • Constructor Details

    • DynamicValues

      public DynamicValues(String defaultVal)
  • Method Details

    • add

      public int add(String value)
    • getN

      public String getN(int n)
      Description copied from interface: ParamValue
      get value at the specified index.
      Specified by:
      getN in interface ParamValue
      Parameters:
      n - the nth value
      Returns:
      the value stored at index = n
    • getIndex

      public int getIndex(String value)
      Description copied from interface: ParamValue
      max index is 2^31 - 1
      Specified by:
      getIndex in interface ParamValue
      Parameters:
      value - the stored value
      Returns:
      the index of value