static class GuavaSupport.AsMapWriter extends java.lang.Object implements ObjectWriter
| Modifier and Type | Field and Description |
|---|---|
(package private) java.util.function.Function |
asMap |
(package private) java.lang.Class |
objectClass |
(package private) java.lang.String |
typeName |
(package private) long |
typeNameHash |
protected byte[] |
typeNameJSONB |
| Constructor and Description |
|---|
AsMapWriter(java.lang.Class objectClass) |
| Modifier and Type | Method and Description |
|---|---|
void |
write(JSONWriter jsonWriter,
java.lang.Object object,
java.lang.Object fieldName,
java.lang.reflect.Type fieldType,
long features)
Writes an object to the JSONWriter with the given field name, field type, and features.
|
void |
writeJSONB(JSONWriter jsonWriter,
java.lang.Object object,
java.lang.Object fieldName,
java.lang.reflect.Type fieldType,
long features)
Writes an object to the JSONWriter in JSONB format.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFeatures, getFieldValue, getFieldWriter, getFieldWriter, getFieldWriters, hasFilter, setFilter, setNameFilter, setPropertyFilter, setPropertyPreFilter, setValueFilter, toJSONString, write, writeArrayMapping, writeArrayMappingJSONB, writeArrayMappingJSONB, writeTypeInfo, writeWithFilter, writeWithFilterfinal java.lang.Class objectClass
final java.lang.String typeName
final long typeNameHash
final java.util.function.Function asMap
protected byte[] typeNameJSONB
public void write(JSONWriter jsonWriter, java.lang.Object object, java.lang.Object fieldName, java.lang.reflect.Type fieldType, long features)
ObjectWriterwrite in interface ObjectWriterjsonWriter - the JSONWriter to which the object should be writtenobject - the object to writefieldName - the name of the field being writtenfieldType - the type of the field being writtenfeatures - the features to use for writingpublic void writeJSONB(JSONWriter jsonWriter, java.lang.Object object, java.lang.Object fieldName, java.lang.reflect.Type fieldType, long features)
ObjectWriterwriteJSONB in interface ObjectWriterjsonWriter - the JSONWriter to which the object should be writtenobject - the object to writefieldName - the name of the field being writtenfieldType - the type of the field being writtenfeatures - the features to use for writing