Interface Document.ListBuilder
-
- All Known Implementing Classes:
ListDocument.ListBuilderInternal
- Enclosing interface:
- Document
public static interface Document.ListBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Document.ListBuilder
addBoolean(boolean booleanValue)
Adds a Document which is constructed from the given boolean.Document.ListBuilder
addDocument(Document document)
Adds a Document to the constructed Document List.Document.ListBuilder
addMap(Consumer<Document.MapBuilder> mapBuilderConsumer)
Inserts a Document Value constructed from Consumer ofDocument.MapBuilder
.Document.ListBuilder
addNull()
Inserts a Null Document to the constructed Document List.Document.ListBuilder
addNumber(double numberValue)
Adds a Document which is constructed from the given double.Document.ListBuilder
addNumber(float numberValue)
Adds a Document which is constructed from the given float.Document.ListBuilder
addNumber(int numberValue)
Adds a Document which is constructed from the given integer.Document.ListBuilder
addNumber(long numberValue)
Adds a Document which is constructed from the given long.Document.ListBuilder
addNumber(String numberValue)
Adds a Document which is constructed from the given String.Document.ListBuilder
addNumber(BigDecimal numberValue)
Adds a Document which is constructed from the given BigDecimal.Document.ListBuilder
addNumber(BigInteger numberValue)
Adds a Document which is constructed from the given BigInteger.Document.ListBuilder
addNumber(SdkNumber numberValue)
Adds a Document which is constructed from the givenSdkNumber
.Document.ListBuilder
addString(String stringValue)
Adds a Document which is constructed from the given stringValue..Document
build()
Creates a newDocument
with the List members as added with add method.
-
-
-
Method Detail
-
addString
Document.ListBuilder addString(String stringValue)
Adds a Document which is constructed from the given stringValue..- Parameters:
stringValue
- String Value from which the Document to be added is created.- Returns:
- Builder which provides APIs to add Document to a Document List.
-
addBoolean
Document.ListBuilder addBoolean(boolean booleanValue)
Adds a Document which is constructed from the given boolean.- Parameters:
booleanValue
- Boolean value from which the Document to be added is created.- Returns:
- Builder which provides APIs to add Document to a Document List.
-
addNumber
Document.ListBuilder addNumber(SdkNumber numberValue)
Adds a Document which is constructed from the givenSdkNumber
.- Parameters:
numberValue
-SdkNumber
from which the Document to be added is created.- Returns:
- Builder which provides APIs to add Document to a Document List.
-
addNumber
Document.ListBuilder addNumber(int numberValue)
Adds a Document which is constructed from the given integer.- Parameters:
numberValue
- integer from which the Document to be added is created.- Returns:
- Builder which provides APIs to add Document to a Document List.
-
addNumber
Document.ListBuilder addNumber(long numberValue)
Adds a Document which is constructed from the given long.- Parameters:
numberValue
- long from which the Document to be added is created.- Returns:
- Builder which provides APIs to add Document to a Document List.
-
addNumber
Document.ListBuilder addNumber(float numberValue)
Adds a Document which is constructed from the given float.- Parameters:
numberValue
- float from which the Document to be added is created.- Returns:
- Builder which provides APIs to add Document to a Document List.
-
addNumber
Document.ListBuilder addNumber(double numberValue)
Adds a Document which is constructed from the given double.- Parameters:
numberValue
- double from which the Document to be added is created.- Returns:
- Builder which provides APIs to add Document to a Document List.
-
addNumber
Document.ListBuilder addNumber(BigDecimal numberValue)
Adds a Document which is constructed from the given BigDecimal.- Parameters:
numberValue
- BigDecimal from which the Document to be added is created.- Returns:
- Builder which provides APIs to add Document to a Document List.
-
addNumber
Document.ListBuilder addNumber(BigInteger numberValue)
Adds a Document which is constructed from the given BigInteger.- Parameters:
numberValue
- BigInteger from which the Document to be added is created.- Returns:
- Builder which provides APIs to add Document to a Document List.
-
addNumber
Document.ListBuilder addNumber(String numberValue)
Adds a Document which is constructed from the given String.- Parameters:
numberValue
- String from which the Document to be added is created.- Returns:
- Builder which provides APIs to add Document to a Document List.
-
addDocument
Document.ListBuilder addDocument(Document document)
Adds a Document to the constructed Document List.- Parameters:
document
- Document that will be added to a Document List.- Returns:
- Builder which provides APIs to add Document to a Document List.
-
addMap
Document.ListBuilder addMap(Consumer<Document.MapBuilder> mapBuilderConsumer)
Inserts a Document Value constructed from Consumer ofDocument.MapBuilder
.- Parameters:
mapBuilderConsumer
- Consumer that acceptsDocument.ListBuilder
- Returns:
- Builder which provides APIs to put Key Value pair to a Document Map.
-
addNull
Document.ListBuilder addNull()
Inserts a Null Document to the constructed Document List.- Returns:
- Builder which provides APIs to add Document to a Document List.
-
-