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.ListBuilderaddBoolean(boolean booleanValue)Adds a Document which is constructed from the given boolean.Document.ListBuilderaddDocument(Document document)Adds a Document to the constructed Document List.Document.ListBuilderaddMap(Consumer<Document.MapBuilder> mapBuilderConsumer)Inserts a Document Value constructed from Consumer ofDocument.MapBuilder.Document.ListBuilderaddNull()Inserts a Null Document to the constructed Document List.Document.ListBuilderaddNumber(double numberValue)Adds a Document which is constructed from the given double.Document.ListBuilderaddNumber(float numberValue)Adds a Document which is constructed from the given float.Document.ListBuilderaddNumber(int numberValue)Adds a Document which is constructed from the given integer.Document.ListBuilderaddNumber(long numberValue)Adds a Document which is constructed from the given long.Document.ListBuilderaddNumber(String numberValue)Adds a Document which is constructed from the given String.Document.ListBuilderaddNumber(BigDecimal numberValue)Adds a Document which is constructed from the given BigDecimal.Document.ListBuilderaddNumber(BigInteger numberValue)Adds a Document which is constructed from the given BigInteger.Document.ListBuilderaddNumber(SdkNumber numberValue)Adds a Document which is constructed from the givenSdkNumber.Document.ListBuilderaddString(String stringValue)Adds a Document which is constructed from the given stringValue..Documentbuild()Creates a newDocumentwith 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-SdkNumberfrom 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.
-
-