public final class Value extends Object
| Constructor and Description |
|---|
Value(Boolean b)
Creates a boolean value.
|
Value(byte[] bytes)
Creates a binary (base64) value.
|
Value(Date date)
Creates a date value.
|
Value(Double d)
Creates a double value.
|
Value(Integer integer)
Creates an integer value.
|
Value(List<Value> list)
Creates an array type value.
|
Value(Map<String,Value> map)
Creates a struct type value.
|
Value(String string)
Creates a string value.
|
| Modifier and Type | Method and Description |
|---|---|
List<Value> |
getAsArray()
Gets the value as array or null.
|
Boolean |
getAsBoolean()
Gets the value as boolean or null.
|
byte[] |
getAsByteArray()
Gets the value as byte array or null.
|
Date |
getAsDate()
Gets the value as date or null.
|
Double |
getAsDouble()
Gets the value as double or null.
|
Integer |
getAsInteger()
Gets the value as integer or null.
|
Map<String,Value> |
getAsMap()
Gets the value as map or null.
|
String |
getAsString()
Gets the value as string or null.
|
public Value(Integer integer)
integer - The integer value.public Value(String string)
string - The string value.public Value(Double d)
d - The double value.public Value(byte[] bytes)
bytes - The binary value.public Value(Boolean b)
b - The boolean value.public Value(Date date)
date - The date value.public Value(List<Value> list)
list - The array type value.public Integer getAsInteger()
public Double getAsDouble()
public String getAsString()
public byte[] getAsByteArray()
public Boolean getAsBoolean()
public Date getAsDate()
public List<Value> getAsArray()
Copyright © 2014 XMPP.rocks. All rights reserved.