@Immutable public final class BooleanDocument extends Object implements Document
Document.ListBuilder, Document.MapBuilder| Constructor and Description |
|---|
BooleanDocument(boolean value)
Create a New
BooleanDocument 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()
Gets the boolean value of the Document.
|
List<Document> |
asList() |
Map<String,Document> |
asMap() |
SdkNumber |
asNumber() |
String |
asString() |
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isBoolean()
Indicates this is a Boolean Document.
|
String |
toString() |
Object |
unwrap()
Unwraps the Document Boolean to a Boolean Object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitfromBoolean, fromList, fromMap, fromNull, fromNumber, fromNumber, fromNumber, fromNumber, fromNumber, fromNumber, fromNumber, fromNumber, fromString, isList, isMap, isNull, isNumber, isString, listBuilder, mapBuilderpublic BooleanDocument(boolean value)
BooleanDocument with boolean value as passed in constructorvalue - boolean value.public Object unwrap()
public boolean isBoolean()
public boolean asBoolean()
public String asString()
public SdkNumber asNumber()
public <R> R accept(DocumentVisitor<? extends R> visitor)
public void accept(VoidDocumentVisitor visitor)
Copyright © 2023. All rights reserved.