public class FixedParamValue extends Object implements ParamValue
| Constructor and Description |
|---|
FixedParamValue(String... values) |
| Modifier and Type | Method and Description |
|---|---|
String |
defaultVal()
get default value
|
Integer |
getIndex(String value)
max index is 2^31 - 1
|
String |
getN(Integer n)
DEFAULT value will be returned if n = 0
|
public FixedParamValue(String... values)
public String getN(Integer n)
getN in interface ParamValuen - public Integer getIndex(String value)
ParamValuegetIndex in interface ParamValuevalue - the stored valuepublic String defaultVal()
ParamValuedefaultVal in interface ParamValueCopyright © 2011–2021 The Apache Software Foundation. All rights reserved.