public class MBodyPortStatsCodec extends OfJsonCodec<MBodyPortStats>
MBodyPortStats
objects.| Modifier and Type | Field and Description |
|---|---|
static String |
ROOT
JSON key for meter
|
static String |
ROOTS
JSON key for meters
|
VERSIONlog, mapper, NO_DECODING_SUP, root, roots| Constructor and Description |
|---|
MBodyPortStatsCodec() |
| Modifier and Type | Method and Description |
|---|---|
MBodyPortStats |
decode(com.fasterxml.jackson.databind.node.ObjectNode node)
Decodes the JSON into a typed POJO.
|
com.fasterxml.jackson.databind.node.ObjectNode |
encode(MBodyPortStats ps)
Encodes the given POJO to its JSON representation.
|
String |
encode(MBodyPortStats ps,
boolean prettyPrint)
Encodes the given POJO to its JSON string representation.
|
decode, decodeList, encodeList, versionarrayNode, encodeList, fromEnums, isMissingContent, longVal, objectNode, read, root, roots, toEnums, writepublic static final String ROOT
public static final String ROOTS
public String encode(MBodyPortStats ps, boolean prettyPrint)
JsonCodecencode in interface JsonCodec<MBodyPortStats>encode in class OfJsonCodec<MBodyPortStats>ps - POJO to encodeprettyPrint - Human-readable formatted JSON if true, single-line
JSON otherwisepublic com.fasterxml.jackson.databind.node.ObjectNode encode(MBodyPortStats ps)
JsonCodecps - POJO to encodepublic MBodyPortStats decode(com.fasterxml.jackson.databind.node.ObjectNode node)
JsonCodecnode - JSON representation of the typed POJO. This does not have a
"top" rootCopyright © 2014. All Rights Reserved.