public class JsonEvent extends Object
JsonParser
.
NOTE: This class has been automatically generated from the original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<JsonEvent> |
__TYPE_ARG |
Constructor and Description |
---|
JsonEvent(JsonEvent delegate) |
JsonEvent(Object delegate) |
Modifier and Type | Method and Description |
---|---|
JsonArray |
arrayValue() |
Buffer |
binaryValue()
Return the binary value.
|
Boolean |
booleanValue() |
Double |
doubleValue() |
boolean |
equals(Object o) |
String |
fieldName() |
Float |
floatValue() |
JsonEvent |
getDelegate() |
int |
hashCode() |
java.time.Instant |
instantValue()
Return the
Instant value. |
Integer |
integerValue() |
boolean |
isArray() |
boolean |
isBoolean() |
boolean |
isNull() |
boolean |
isNumber() |
boolean |
isObject() |
boolean |
isString() |
Long |
longValue() |
<T> T |
mapTo(Class<T> type)
Decodes and returns the current value as the specified
type . |
<T> T |
mapTo(TypeReference<T> type)
Decodes and returns the current value as the specified
type . |
static JsonEvent |
newInstance(JsonEvent arg) |
JsonObject |
objectValue() |
String |
stringValue() |
String |
toString() |
JsonEventType |
type() |
Object |
value() |
public static final io.vertx.lang.rx.TypeArg<JsonEvent> __TYPE_ARG
public JsonEvent(JsonEvent delegate)
public JsonEvent(Object delegate)
public JsonEvent getDelegate()
public JsonEventType type()
public String fieldName()
public Object value()
public boolean isNumber()
public Integer integerValue()
Integer
value or null
if the event has no JSON valuepublic Long longValue()
Long
value or null
if the event has no JSON valuepublic Float floatValue()
Float
value or null
if the event has no JSON valuepublic Double doubleValue()
Double
value or null
if the event has no JSON valuepublic boolean isBoolean()
public Boolean booleanValue()
Boolean
value or null
if the event has no JSON valuepublic boolean isString()
public String stringValue()
null
if the event has no JSON valuepublic Buffer binaryValue()
JSON itself has no notion of a binary, this extension complies to the RFC-7493, so this method assumes there is a String value with the key and it contains a Base64 encoded binary, which it decodes if found and returns.
null
if the event has no JSON valuepublic boolean isNull()
public boolean isObject()
public JsonObject objectValue()
null
if the event has no JSON valuepublic boolean isArray()
public JsonArray arrayValue()
null
if the event has no JSON valuepublic <T> T mapTo(Class<T> type)
type
.type
- the type to decode the value topublic java.time.Instant instantValue()
Instant
value.
JSON itself has no notion of a temporal types, this extension complies to the RFC-7493, so this method assumes there is a String value with the key and it contains an ISO 8601 encoded date and time format such as "2017-04-03T10:25:41Z", which it decodes if found and returns.
Instant
value or null
if the event has no JSON valuepublic <T> T mapTo(TypeReference<T> type)
type
.type
- the type to decode the value toCopyright © 2024 Eclipse. All rights reserved.