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.JsonArraybooleanio.vertx.core.parsetools.JsonEventinthashCode()booleanisArray()booleanbooleanisNull()booleanisNumber()booleanisObject()booleanisString()<T> TmapTo(com.fasterxml.jackson.core.type.TypeReference<T> type) <T> Tstatic JsonEventnewInstance(io.vertx.core.parsetools.JsonEvent arg) io.vertx.core.json.JsonObjecttoString()io.vertx.core.parsetools.JsonEventTypetype()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:
getDelegatein 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
Integervalue ornullif the event has no JSON value
-
longValue
- Returns:
- the
Longvalue ornullif the event has no JSON value
-
floatValue
- Returns:
- the
Floatvalue ornullif the event has no JSON value
-
doubleValue
- Returns:
- the
Doublevalue ornullif the event has no JSON value
-
isBoolean
public boolean isBoolean()- Returns:
- true when the JSON value is a boolean
-
booleanValue
- Returns:
- the
Booleanvalue ornullif 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
nullif the event has no JSON value
-
binaryValue
- Returns:
- the binary value or
nullif 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
nullif 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
nullif the event has no JSON value
-
mapTo
- Parameters:
type- the type to decode the value to- Returns:
- the decoded value
-
instantValue
- Returns:
- the
Instantvalue ornullif 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
-