public class CollectionComposer<PARENT extends ComposerBase,C extends Collection<Object>> extends ComposerBase
Modifier and Type | Field and Description |
---|---|
protected C |
_collection |
protected PARENT |
_parent |
_child, _open
Constructor and Description |
---|
CollectionComposer(C coll) |
CollectionComposer(PARENT parent) |
_childClosed, _illegalCall, _safeFinish, _startArray, _startCollection, _startMap, _startObject
protected final PARENT extends ComposerBase _parent
protected C extends Collection<Object> _collection
public CollectionComposer(PARENT parent)
public CollectionComposer(C coll)
public static <T extends Collection<Object>> CollectionComposer<?,T> rootComposer(T coll)
public void flush()
protected CollectionComposer<PARENT,C> _start()
_start
in class ComposerBase
protected C _finish()
_finish
in class ComposerBase
public CollectionComposer<CollectionComposer<PARENT,C>,?> startArray()
public MapComposer<CollectionComposer<PARENT,C>> startObject()
public C finish()
public CollectionComposer<PARENT,C> add(int value)
public CollectionComposer<PARENT,C> add(long value)
public CollectionComposer<PARENT,C> add(double value)
public CollectionComposer<PARENT,C> add(String value)
public CollectionComposer<PARENT,C> add(CharSequence value)
public CollectionComposer<PARENT,C> addNull()
public CollectionComposer<PARENT,C> add(boolean value)
public CollectionComposer<PARENT,C> addObject(Object pojo)
JsonGenerator
has a properly configured ObjectCodec
to use for serializer object.public PARENT end()
protected C constructCollection()
protected void _closeChild()
Copyright © 2020 FasterXML. All rights reserved.