public static class MapDocument.MapBuilderInternal extends Object implements Document.MapBuilder
| Constructor and Description |
|---|
MapBuilderInternal() |
public Document.MapBuilder putString(String key, String stringValue)
putString in interface Document.MapBuilderkey - Map Key for the Document.stringValue - String value which will be used to create a Document to be inserted in a DocumentMap.public Document.MapBuilder putNumber(String key, SdkNumber numberValue)
putNumber in interface Document.MapBuilderkey - Map Key for the Document.numberValue - Number value which will be used to create a Document to be inserted in a DocumentMap.public Document.MapBuilder putNumber(String key, int numberValue)
putNumber in interface Document.MapBuilderkey - Map Key for the Document.numberValue - Integer value which will be used to create a Document to be inserted in a DocumentMap.public Document.MapBuilder putNumber(String key, long numberValue)
putNumber in interface Document.MapBuilderkey - Map Key for the Document.numberValue - long value which will be used to create a Document to be inserted in a DocumentMap.public Document.MapBuilder putNumber(String key, double numberValue)
putNumber in interface Document.MapBuilderkey - Map Key for the Document.numberValue - double value which will be used to create a Document to be inserted in a DocumentMap.public Document.MapBuilder putNumber(String key, float numberValue)
putNumber in interface Document.MapBuilderkey - Map Key for the Document.numberValue - float value which will be used to create a Document to be inserted in a DocumentMap.public Document.MapBuilder putNumber(String key, BigDecimal numberValue)
putNumber in interface Document.MapBuilderkey - Map Key for the Document.numberValue - BigDecimal value which will be used to create a Document to be inserted in a DocumentMap.public Document.MapBuilder putNumber(String key, BigInteger numberValue)
putNumber in interface Document.MapBuilderkey - Map Key for the Document.numberValue - BigInteger value which will be used to create a Document to be inserted in a DocumentMap.public Document.MapBuilder putNumber(String key, String numberValue)
putNumber in interface Document.MapBuilderkey - Map Key for the Document.numberValue - String value which will be used to create a Document to be inserted in a DocumentMap.public Document.MapBuilder putBoolean(String key, boolean booleanValue)
putBoolean in interface Document.MapBuilderkey - Map Key for the Document.booleanValue - Boolean value which will be used to create a Document to be inserted in a DocumentMap.public Document.MapBuilder putDocument(String key, Document document)
putDocument in interface Document.MapBuilderkey - Map Key for the Document.document - Document to be inserted in a DocumentMap.public Document.MapBuilder putNull(String key)
putNull in interface Document.MapBuilderkey - Map Key for the Document.public Document.MapBuilder putList(String key, List<Document> documentList)
putList in interface Document.MapBuilderkey - Map Key for the Document.documentList - List of Documents.public Document.MapBuilder putList(String key, Consumer<Document.ListBuilder> listBuilderConsumer)
putList in interface Document.MapBuilderkey - Map Key for the Document.listBuilderConsumer - Consumer that accepts Document.ListBuilderpublic Document.MapBuilder putMap(String key, Map<String,Document> documentMap)
putMap in interface Document.MapBuilderkey - Map Key for the Document.documentMap - Map of Document.public Document.MapBuilder putMap(String key, Consumer<Document.MapBuilder> mapBuilderConsumer)
putMap in interface Document.MapBuilderkey - Map Key for the Document.mapBuilderConsumer - Consumer that accepts Document.ListBuilderpublic Document build()
build in interface Document.MapBuilderDocument.Copyright © 2022. All rights reserved.