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 NewBooleanDocumentwith boolean value as passed in constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R> Raccept(DocumentVisitor<? extends R> visitor)Accepts a visitor with the Document.voidaccept(VoidDocumentVisitor visitor)Accepts a visitor with the Document.booleanasBoolean()Gets the boolean value of the Document.List<Document>asList()Map<String,Document>asMap()SdkNumberasNumber()StringasString()booleanequals(Object o)inthashCode()booleanisBoolean()Indicates this is a Boolean Document.StringtoString()Objectunwrap()Unwraps the Document Boolean to a Boolean Object.
-
-
-
Constructor Detail
-
BooleanDocument
public BooleanDocument(boolean value)
Create a NewBooleanDocumentwith 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.
-
-