Interface Document.ListBuilder
- All Known Implementing Classes:
ListDocument.ListBuilderInternal
- Enclosing interface:
Document
public static interface Document.ListBuilder
-
Method Summary
Modifier and TypeMethodDescriptionaddBoolean
(boolean booleanValue) Adds a Document which is constructed from the given boolean.addDocument
(Document document) Adds a Document to the constructed Document List.addMap
(Consumer<Document.MapBuilder> mapBuilderConsumer) Inserts a Document Value constructed from Consumer ofDocument.MapBuilder
.addNull()
Inserts a Null Document to the constructed Document List.addNumber
(double numberValue) Adds a Document which is constructed from the given double.addNumber
(float numberValue) Adds a Document which is constructed from the given float.addNumber
(int numberValue) Adds a Document which is constructed from the given integer.addNumber
(long numberValue) Adds a Document which is constructed from the given long.Adds a Document which is constructed from the given String.addNumber
(BigDecimal numberValue) Adds a Document which is constructed from the given BigDecimal.addNumber
(BigInteger numberValue) Adds a Document which is constructed from the given BigInteger.Adds a Document which is constructed from the givenSdkNumber
.Adds a Document which is constructed from the given stringValue..build()
Creates a newDocument
with the List members as added with add method.
-
Method Details
-
addString
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
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
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
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
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
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
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
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
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
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
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
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.
-
build
Document build()Creates a newDocument
with the List members as added with add method.- Returns:
- The new
Document
.
-