Package io.vertigo.core.param
Class Param
- java.lang.Object
-
- io.vertigo.core.param.Param
-
public final class Param extends Object
Param.- Author:
- pchretien
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
String
getValue()
<O> O
getValue(Class<O> paramType)
Returns the param ad a typed value .boolean
getValueAsBoolean()
Returns the param as a boolean .int
getValueAsInt()
Returns the param as an int.long
getValueAsLong()
Returns the param as a long.String
getValueAsString()
Returns the param as a String.static Param
of(String name, Integer value)
Creates a new Integer paramstatic Param
of(String name, String value)
Creates a new param
-
-
-
Method Detail
-
of
public static Param of(String name, Integer value)
Creates a new Integer param- Parameters:
name
- the name of the paramvalue
- the value of the param- Returns:
- new param
-
of
public static Param of(String name, String value)
Creates a new param- Parameters:
name
- the name of the paramvalue
- the value of the param- Returns:
- new param
-
getValue
public String getValue()
- Returns:
- the value of the param
-
getName
public String getName()
- Returns:
- the name of the param
-
getValue
public <O> O getValue(Class<O> paramType)
Returns the param ad a typed value .- Parameters:
paramType
- Type of the param- Returns:
- the value of the param
-
getValueAsString
public String getValueAsString()
Returns the param as a String.- Returns:
- the value of the param
-
getValueAsInt
public int getValueAsInt()
Returns the param as an int.- Returns:
- the value of the param
-
getValueAsLong
public long getValueAsLong()
Returns the param as a long.- Returns:
- the value of the param
-
getValueAsBoolean
public boolean getValueAsBoolean()
Returns the param as a boolean .- Returns:
- the value of the param
-
-