public final class JSonValue
extends com.google.gwt.core.client.JavaScriptObject
| Modifier | Constructor and Description |
|---|---|
protected |
JSonValue() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getAsBool(String key)
Returns the value for the specified key as boolean
|
Boolean |
getAsBoolean(String key) |
Date |
getAsDate(String key) |
Double |
getAsDouble(String key) |
Float |
getAsFloat(String key) |
Integer |
getAsInteger(String key) |
Long |
getAsLong(String key) |
double |
getAsNumber(String key)
Returns the value for the specified key as Number
|
String |
getAsString(String key)
Returns the value for the specified key as String
|
String |
getType(String key) |
boolean |
isNull(String key)
Check if the specified value is null.
|
void |
set(String key,
boolean value)
Set the specified value.
|
void |
set(String key,
Boolean value)
Set the specified value.
|
void |
set(String key,
Date value)
Set the specified value.
|
void |
set(String key,
double value)
Set the specified value.
|
void |
set(String key,
Double value)
Set the specified value.
|
void |
set(String key,
Float value)
Set the specified value.
|
void |
set(String key,
Integer value)
Set the specified value.
|
void |
set(String key,
Long value)
Set the specified value.
|
void |
set(String key,
String value)
Set the specified value.
|
public String getAsString(String key)
key - the value key.public void set(String key, String value)
key - the key.value - the value to set.public double getAsNumber(String key)
key - the value key.public void set(String key, double value)
key - the key.value - the value to set.public boolean getAsBool(String key)
key - the value key.public void set(String key, boolean value)
key - the key.value - the value to set.public boolean isNull(String key)
key - the value key.True if the values is null, false otherwise.public void set(String key, Boolean value)
key - the key.value - the value to set.public void set(String key, Date value)
key - the key.value - the value to set.public void set(String key, Double value)
key - the key.value - the value to set.public void set(String key, Float value)
key - the key.value - the value to set.public void set(String key, Integer value)
key - the key.value - the value to set.Copyright © 2019. All Rights Reserved.