public final class StringDocument extends Object implements Document
Document.ListBuilder, Document.MapBuilder| Constructor and Description |
|---|
StringDocument(String string)
Create a New
StringDocument with boolean value as passed in constructor |
| Modifier and Type | Method and Description |
|---|---|
<R> R |
accept(DocumentVisitor<? extends R> visitor)
Accepts a visitor with the Document.
|
void |
accept(VoidDocumentVisitor visitor)
Accepts a visitor with the Document.
|
boolean |
asBoolean() |
List<Document> |
asList()
Gets the document as a
List if it is a document type array. |
Map<String,Document> |
asMap()
Gets the document as a
Map. |
SdkNumber |
asNumber()
|
String |
asString()
Gets the String value of the Document.
|
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isString() |
String |
toString() |
Object |
unwrap()
Unwraps the Document Boolean to a String Object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitfromBoolean, fromList, fromMap, fromNull, fromNumber, fromNumber, fromNumber, fromNumber, fromNumber, fromNumber, fromNumber, fromNumber, fromString, isBoolean, isList, isMap, isNull, isNumber, listBuilder, mapBuilderpublic StringDocument(String string)
StringDocument with boolean value as passed in constructorstring - boolean value.public Object unwrap()
public boolean asBoolean()
public boolean isString()
public String asString()
public Map<String,Document> asMap()
DocumentMap.
Each value contained in the Map is the same as how the value
would be represented by Document.
public List<Document> asList()
DocumentList if it is a document type array.
Each value contained in the List is the same as how the
value would be represented by Document.
public <R> R accept(DocumentVisitor<? extends R> visitor)
public void accept(VoidDocumentVisitor visitor)
Copyright © 2023. All rights reserved.