public interface Var
Modifier and Type | Method and Description |
---|---|
boolean |
boolValue()
Parse value as boolean
Raw value will be parsed as true, if it equals to "true" or "1"
|
double |
doubleValue()
Parse value as double
|
long |
expiry()
Expiry time of this variable, if specified.
|
float |
floatValue()
Parse value as float
|
boolean |
hasExpiry()
Has this variable expiry time
|
int |
intValue()
Parse value as integer
|
boolean |
isExpired()
Is this variable expired
|
long |
longValue()
Parse value as long
|
java.lang.String |
name()
Name of this variable
|
VarBuilder |
toBuilder()
Convert this value to builder with current values
|
java.lang.String |
value()
Raw value of variable.
|
java.lang.String name()
java.lang.String value()
long expiry()
boolean hasExpiry()
boolean isExpired()
boolean boolValue()
int intValue() throws java.lang.NumberFormatException
java.lang.NumberFormatException
- if raw value cannot be parsed as integerlong longValue() throws java.lang.NumberFormatException
java.lang.NumberFormatException
- if raw value cannot be parsed as longfloat floatValue() throws java.lang.NumberFormatException
java.lang.NumberFormatException
- if raw value cannot be parsed as floatdouble doubleValue() throws java.lang.NumberFormatException
java.lang.NumberFormatException
- if raw value cannot be parsed as doubleVarBuilder toBuilder()