Class ListDocument
java.lang.Object
software.amazon.awssdk.core.document.internal.ListDocument
- All Implemented Interfaces:
Serializable,Document
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classInternal List Builder for easy construction of Document Lists.Nested classes/interfaces inherited from interface software.amazon.awssdk.core.document.Document
Document.ListBuilder, Document.MapBuilder -
Field Summary
Fields inherited from interface software.amazon.awssdk.core.document.Document
FALSE_DOCUMENT, NULL_DOCUMENT, TRUE_DOCUMENT -
Constructor Summary
ConstructorsConstructorDescriptionListDocument(List<Document> documentList) Create a NewListDocumentwith List of Document documentList as passed in constructor -
Method Summary
Modifier and TypeMethodDescription<R> Raccept(DocumentVisitor<? extends R> visitor) Accepts a visitor with the Document.voidaccept(VoidDocumentVisitor visitor) Accepts a visitor with the Document.booleanasList()Gets the document as aListif it is a document type array.asMap()asNumber()asString()booleaninthashCode()booleanisList()static Document.ListBuilderProvides Builder methods ofListDocument.ListBuilderInternalto directly create Document with List of DocumentstoString()unwrap()Gets the value of the document as a Java type that represents the Loops through the individual Document and unwraps each of the document.
-
Constructor Details
-
ListDocument
Create a NewListDocumentwith List of Document documentList as passed in constructor- Parameters:
documentList- ListDocument documentList.
-
-
Method Details
-
listBuilder
Provides Builder methods ofListDocument.ListBuilderInternalto directly create Document with List of Documents- Returns:
- Builder methods to Construct Document with List of Documents.
-
unwrap
Gets the value of the document as a Java type that represents the Loops through the individual Document and unwraps each of the document. -
asBoolean
public boolean asBoolean() -
asString
-
asNumber
-
asMap
-
isList
public boolean isList() -
asList
Description copied from interface:DocumentGets the document as aListif it is a document type array.Each value contained in the
Listis the same as how the value would be represented byDocument.- Specified by:
asListin interfaceDocument- Returns:
- unmodifiableList of the List of Documents in the {
ListDocument}.
-
accept
Accepts a visitor with the Document. -
accept
Accepts a visitor with the Document. Calls visitList of visitor. -
toString
-
equals
-
hashCode
public int hashCode()
-