Package io.vertx.mutiny.core.parsetools
Class JsonEvent
java.lang.Object
io.vertx.mutiny.core.parsetools.JsonEvent
- All Implemented Interfaces:
MutinyDelegate
A JSON event emited by the
JsonParser
.
NOTE: This class has been automatically generated from the original
non Mutiny-ified interface using Vert.x codegen.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.vertx.core.json.JsonArray
boolean
io.vertx.core.parsetools.JsonEvent
int
hashCode()
boolean
isArray()
boolean
boolean
isNull()
boolean
isNumber()
boolean
isObject()
boolean
isString()
<T> T
mapTo
(com.fasterxml.jackson.core.type.TypeReference<T> type) <T> T
static JsonEvent
newInstance
(io.vertx.core.parsetools.JsonEvent arg) io.vertx.core.json.JsonObject
toString()
io.vertx.core.parsetools.JsonEventType
type()
value()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
JsonEvent
public JsonEvent(io.vertx.core.parsetools.JsonEvent delegate) -
JsonEvent
-
-
Method Details
-
getDelegate
public io.vertx.core.parsetools.JsonEvent getDelegate()- Specified by:
getDelegate
in interfaceMutinyDelegate
- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
-
equals
-
hashCode
public int hashCode() -
type
public io.vertx.core.parsetools.JsonEventType type()- Returns:
- the type of the event
-
fieldName
- Returns:
- the name of the field when the event is emitted as a JSON object member
-
value
- Returns:
- the json value for events
-
isNumber
public boolean isNumber()- Returns:
- true when the JSON value is a number
-
integerValue
- Returns:
- the
Integer
value ornull
if the event has no JSON value
-
longValue
- Returns:
- the
Long
value ornull
if the event has no JSON value
-
floatValue
- Returns:
- the
Float
value ornull
if the event has no JSON value
-
doubleValue
- Returns:
- the
Double
value ornull
if the event has no JSON value
-
isBoolean
public boolean isBoolean()- Returns:
- true when the JSON value is a boolean
-
booleanValue
- Returns:
- the
Boolean
value ornull
if the event has no JSON value
-
isString
public boolean isString()- Returns:
- true when the JSON value is a string
-
stringValue
- Returns:
- the string value or
null
if the event has no JSON value
-
binaryValue
- Returns:
- the binary value or
null
if the event has no JSON value
-
isNull
public boolean isNull()- Returns:
- true when the JSON value is null
-
isObject
public boolean isObject()- Returns:
- true when the JSON value is a JSON object
-
objectValue
public io.vertx.core.json.JsonObject objectValue()- Returns:
- the JSON object value or
null
if the event has no JSON value
-
isArray
public boolean isArray()- Returns:
- true when the JSON value is a JSON array
-
arrayValue
public io.vertx.core.json.JsonArray arrayValue()- Returns:
- the JSON array value or
null
if the event has no JSON value
-
mapTo
- Parameters:
type
- the type to decode the value to- Returns:
- the decoded value
-
instantValue
- Returns:
- the
Instant
value ornull
if the event has no JSON value
-
mapTo
public <T> T mapTo(com.fasterxml.jackson.core.type.TypeReference<T> type) - Parameters:
type
- the type to decode the value to- Returns:
- the decoded value
-
newInstance
-