Class BooleanDocument
- java.lang.Object
-
- software.amazon.awssdk.core.document.internal.BooleanDocument
-
- All Implemented Interfaces:
Serializable
,Document
@Immutable public final class BooleanDocument extends Object implements Document
Represents a Boolean Document.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface software.amazon.awssdk.core.document.Document
Document.ListBuilder, Document.MapBuilder
-
-
Constructor Summary
Constructors Constructor Description BooleanDocument(boolean value)
Create a NewBooleanDocument
with boolean value as passed in constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
BooleanDocument
public BooleanDocument(boolean value)
Create a NewBooleanDocument
with boolean value as passed in constructor- Parameters:
value
- boolean value.
-
-
Method Detail
-
unwrap
public Object unwrap()
Unwraps the Document Boolean to a Boolean Object.
-
isBoolean
public boolean isBoolean()
Indicates this is a Boolean Document.
-
asBoolean
public boolean asBoolean()
Gets the boolean value of the Document.
-
asString
public String asString()
-
asNumber
public SdkNumber asNumber()
-
accept
public <R> R accept(DocumentVisitor<? extends R> visitor)
Accepts a visitor with the Document.
-
accept
public void accept(VoidDocumentVisitor visitor)
Accepts a visitor with the Document. Calls visitBoolean of visitor.
-
-