Class FixedParamValue

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

public class FixedParamValue extends Object implements ParamValue
In lower case
  • Constructor Details

    • FixedParamValue

      public FixedParamValue(String... values)
  • Method Details

    • getN

      public String getN(int n)
      DEFAULT value will be returned if n = 0
      Specified by:
      getN in interface ParamValue
      Parameters:
      n -
      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