- All Implemented Interfaces:
Serializable,Document
- See Also:
Nested Class Summary
Nested Classes
static classInternal List Builder for easy construction of Document Lists.
Constructor Summary
Constructors
Create a NewListDocumentwith List of Document documentList as passed in constructorMethod Summary
<R> RAccepts a visitor with the Document.
voidAccepts a visitor with the Document.
booleanGets the document as a
Listif it is a document type array.booleanintbooleanGets 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
- 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
public boolean equals(Object o) hashCode
public int hashCode()