Package io.vertx.mutiny.core.parsetools
Class JsonEvent
- java.lang.Object
 - 
- io.vertx.mutiny.core.parsetools.JsonEvent
 
 
- 
public class JsonEvent extends Object
A JSON event emited by theJsonParser. NOTE: This class has been automatically generated from theoriginalnon Mutiny-ified interface using Vert.x codegen. 
- 
- 
Field Summary
Fields Modifier and Type Field Description static TypeArg<JsonEvent>__TYPE_ARG 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description io.vertx.core.json.JsonArrayarrayValue()BufferbinaryValue()BooleanbooleanValue()DoubledoubleValue()booleanequals(Object o)StringfieldName()FloatfloatValue()io.vertx.core.parsetools.JsonEventgetDelegate()inthashCode()InstantinstantValue()IntegerintegerValue()booleanisArray()booleanisBoolean()booleanisNull()booleanisNumber()booleanisObject()booleanisString()LonglongValue()<T> TmapTo(com.fasterxml.jackson.core.type.TypeReference<T> type)<T> TmapTo(Class<T> type)static JsonEventnewInstance(io.vertx.core.parsetools.JsonEvent arg)io.vertx.core.json.JsonObjectobjectValue()StringstringValue()StringtoString()io.vertx.core.parsetools.JsonEventTypetype()Objectvalue() 
 - 
 
- 
- 
Constructor Detail
- 
JsonEvent
public JsonEvent(io.vertx.core.parsetools.JsonEvent delegate)
 
- 
JsonEvent
public JsonEvent(Object delegate)
 
 - 
 
- 
Method Detail
- 
getDelegate
public io.vertx.core.parsetools.JsonEvent getDelegate()
 
- 
type
public io.vertx.core.parsetools.JsonEventType type()
- Returns:
 - the type of the event
 
 
- 
fieldName
public String fieldName()
- Returns:
 - the name of the field when the event is emitted as a JSON object member
 
 
- 
value
public Object value()
- Returns:
 - the json value for events
 
 
- 
isNumber
public boolean isNumber()
- Returns:
 - true when the JSON value is a number
 
 
- 
integerValue
public Integer integerValue()
- Returns:
 - the 
Integervalue ornullif the event has no JSON value 
 
- 
longValue
public Long longValue()
- Returns:
 - the 
Longvalue ornullif the event has no JSON value 
 
- 
floatValue
public Float floatValue()
- Returns:
 - the 
Floatvalue ornullif the event has no JSON value 
 
- 
doubleValue
public Double 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
public 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
public String stringValue()
- Returns:
 - the string value or 
nullif the event has no JSON value 
 
- 
binaryValue
public Buffer 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
public <T> T mapTo(Class<T> type)
- Parameters:
 type- the type to decode the value to- Returns:
 - the decoded value
 
 
- 
instantValue
public Instant 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
public static JsonEvent newInstance(io.vertx.core.parsetools.JsonEvent arg)
 
 - 
 
 -